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:
kc5nra
2015-03-22 19:18:13 -07:00
committed by jp9000
parent 87965fa9eb
commit dac3fd88e0
2 changed files with 32 additions and 12 deletions
+2
View File
@@ -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;
};