mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
UI: Fix potential memory leak in properties
When hitting the Cancel button, cleanup code needs to go through the reject() callback as well.
This commit is contained in:
@@ -50,6 +50,7 @@ private:
|
||||
static void DrawPreview(void *data, uint32_t cx, uint32_t cy);
|
||||
bool ConfirmQuit();
|
||||
int CheckSettings();
|
||||
void Cleanup();
|
||||
|
||||
private slots:
|
||||
void OnPropertiesResized();
|
||||
@@ -65,4 +66,5 @@ protected:
|
||||
virtual void resizeEvent(QResizeEvent *event) override;
|
||||
virtual void timerEvent(QTimerEvent *event) override;
|
||||
virtual void closeEvent(QCloseEvent *event) override;
|
||||
virtual void reject() override;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user