Merge branch 'mem'

save memory leak fixes
This commit is contained in:
KTRosenberg 2017-08-07 18:47:46 -04:00
commit 1fb179f45c
3 changed files with 6 additions and 53804 deletions

View File

@ -55,9 +55,11 @@ static nlohmann::json loadLocaleData(const std::string& fn) {
char* bytes = nullptr; char* bytes = nullptr;
int count = 0; int count = 0;
if (FileToByteArray(fn, &bytes, count, true)) { if (FileToByteArray(fn, &bytes, count, true) == true) {
try { try {
return nlohmann::json::parse(bytes); nlohmann::json localeData = nlohmann::json::parse(bytes);
free(bytes);
return localeData;
} }
catch (...) { catch (...) {
} }

View File

@ -59,6 +59,7 @@ LogWindow::LogWindow(IWindow *parent)
} }
LogWindow::~LogWindow() { LogWindow::~LogWindow() {
delete this->adapter;
} }
IScrollAdapter& LogWindow::GetScrollAdapter() { IScrollAdapter& LogWindow::GetScrollAdapter() {

53801
src/tags

File diff suppressed because it is too large Load Diff