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

This commit is contained in:
Christoph Hohmann
2016-09-20 16:23:11 +02:00
parent c99f65a0df
commit 7de289f6cc
+4 -2
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)