mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-02-27 20:09:00 -05:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user