UI: Fix mem leak with QCompleter

This commit is contained in:
pkviet 2018-05-13 03:03:41 +02:00
parent 7f3464c8ce
commit 15a642291e

View File

@ -714,7 +714,7 @@ OBSBasicSettings::~OBSBasicSettings()
{
bool disableHotkeysInFocus = config_get_bool(App()->GlobalConfig(),
"General", "DisableHotkeysInFocus");
delete ui->filenameFormatting->completer();
main->EnableOutputs(true);
App()->EnableInFocusHotkeys(!disableHotkeysInFocus);
}