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;
int count = 0;
if (FileToByteArray(fn, &bytes, count, true)) {
if (FileToByteArray(fn, &bytes, count, true) == true) {
try {
return nlohmann::json::parse(bytes);
nlohmann::json localeData = nlohmann::json::parse(bytes);
free(bytes);
return localeData;
}
catch (...) {
}
@ -180,4 +182,4 @@ int Locale::Dimension(const char* key, int defaultValue) {
}
return defaultValue; /* not found anywhere */
}
}

View File

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

53801
src/tags

File diff suppressed because it is too large Load Diff