summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/styledialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/dialog/styledialog.cpp')
-rw-r--r--src/ui/dialog/styledialog.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui/dialog/styledialog.cpp b/src/ui/dialog/styledialog.cpp
index 2984ae11a..15f713591 100644
--- a/src/ui/dialog/styledialog.cpp
+++ b/src/ui/dialog/styledialog.cpp
@@ -925,6 +925,7 @@ void StyleDialog::_addSelector()
result = textDialogPtr->run();
if (result != Gtk::RESPONSE_OK) { // Cancel, close dialog, etc.
textDialogPtr->hide();
+ delete textDialogPtr;
return;
}
/**