aboutsummaryrefslogtreecommitdiff
path: root/gui/predictivedialog.h
diff options
context:
space:
mode:
authorTorbjörn Andersson2016-02-28 15:04:11 +0100
committerTorbjörn Andersson2016-02-28 15:04:11 +0100
commitbf5208dd3df18e7ff05c4e18b3f03c00baf22238 (patch)
tree3ef14dde4d1472a0248ced92419c0390d5f5dc89 /gui/predictivedialog.h
parent9d4216e1589c210da53de1c45f3cdf71fbb2ff00 (diff)
downloadscummvm-rg350-bf5208dd3df18e7ff05c4e18b3f03c00baf22238.tar.gz
scummvm-rg350-bf5208dd3df18e7ff05c4e18b3f03c00baf22238.tar.bz2
scummvm-rg350-bf5208dd3df18e7ff05c4e18b3f03c00baf22238.zip
GUI: Fix two leaks in predictive dialog
Diffstat (limited to 'gui/predictivedialog.h')
-rw-r--r--gui/predictivedialog.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gui/predictivedialog.h b/gui/predictivedialog.h
index 37c80a2a14..4c167c3efa 100644
--- a/gui/predictivedialog.h
+++ b/gui/predictivedialog.h
@@ -85,6 +85,7 @@ private:
struct Dict {
Dict() : dictLine(nullptr), dictText(nullptr), dictActLine(nullptr),
dictLineCount(0), dictTextSize(0) {}
+ ~Dict() { free(dictText); }
char **dictLine;
char *dictText;
char *dictActLine; // using only for united dict...