Merge pull request #621 from reboot/fix_filter_dialog_crash

UI: Fix crash in filters dialog caused by access to deleted widget
This commit is contained in:
Jim 2016-09-20 07:53:26 -07:00 committed by GitHub
commit 1bd3c2a785

View File

@ -146,8 +146,10 @@ inline OBSSource OBSBasicFilters::GetFilter(int row, bool async)
void OBSBasicFilters::UpdatePropertiesView(int row, bool async)
{
delete view;
view = nullptr;
if (view) {
view->deleteLater();
view = nullptr;
}
OBSSource filter = GetFilter(row, async);
if (!filter)