UI: Fix a series of mem leaks (#1614)
* UI: Fix mem leak with projectors * UI: Fix mem leak with ScaleFilteringMenu * UI: Fix mem leak with sourceProjector * UI: Fix leak with preview projector in Source menu and Preview * UI: Fix mem leaks with background color menu * UI: Fix leak with deinterlace Menu * UI: Fix leak with scene transition override menu * UI: Fix leak with scene projector menu * UI: Fix leak with filter shortcut in Main * UI: Fix leak with filter shortcut in stats
This commit is contained in:
parent
72b8448b3d
commit
62fa2b0086
4 changed files with 85 additions and 45 deletions
|
|
@ -132,7 +132,9 @@ OBSBasicStats::OBSBasicStats(QWidget *parent, bool closeable)
|
|||
[this] () {close();});
|
||||
connect(resetButton, &QPushButton::clicked, [this] () {Reset();});
|
||||
|
||||
installEventFilter(CreateShortcutFilter());
|
||||
delete shortcutFilter;
|
||||
shortcutFilter = CreateShortcutFilter();
|
||||
installEventFilter(shortcutFilter);
|
||||
|
||||
resize(800, 280);
|
||||
|
||||
|
|
@ -181,6 +183,7 @@ void OBSBasicStats::closeEvent(QCloseEvent *event)
|
|||
|
||||
OBSBasicStats::~OBSBasicStats()
|
||||
{
|
||||
delete shortcutFilter;
|
||||
os_cpu_usage_info_destroy(cpu_info);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue