UI: Fix crash in filters dialog caused by access to deleted widget

master
Christoph Hohmann 2016-09-20 16:18:38 +02:00
parent c99f65a0df
commit 7de289f6cc
1 changed files with 4 additions and 2 deletions

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)