提交 7de289f6 编写于 作者: C Christoph Hohmann

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

上级 c99f65a0
...@@ -146,8 +146,10 @@ inline OBSSource OBSBasicFilters::GetFilter(int row, bool async) ...@@ -146,8 +146,10 @@ inline OBSSource OBSBasicFilters::GetFilter(int row, bool async)
void OBSBasicFilters::UpdatePropertiesView(int row, bool async) void OBSBasicFilters::UpdatePropertiesView(int row, bool async)
{ {
delete view; if (view) {
view->deleteLater();
view = nullptr; view = nullptr;
}
OBSSource filter = GetFilter(row, async); OBSSource filter = GetFilter(row, async);
if (!filter) if (!filter)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册