Merge pull request #2297 from jpark37/leak-fixes

Leak fixes
master
Jim 2020-01-04 11:25:37 -08:00 committed by GitHub
commit 39d53e043b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -31,7 +31,8 @@ void SceneTree::SetGridMode(bool grid)
setStyleSheet("");
}
resizeEvent(new QResizeEvent(size(), size()));
QResizeEvent event(size(), size());
resizeEvent(&event);
}
bool SceneTree::GetGridMode()
@ -183,6 +184,6 @@ void SceneTree::rowsInserted(const QModelIndex &parent, int start, int end)
{
QListWidget::rowsInserted(parent, start, end);
QResizeEvent *event = new QResizeEvent(size(), size());
SceneTree::resizeEvent(event);
QResizeEvent event(size(), size());
SceneTree::resizeEvent(&event);
}

View File

@ -965,6 +965,8 @@ void encoder_list_create()
da_push_back(vt_encoders, &enc);
#undef VT_DICTSTR
}
CFRelease(encoder_list);
}
void encoder_list_destroy()