diff options
author | nyamatongwe <unknown> | 2010-06-01 06:25:58 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2010-06-01 06:25:58 +0000 |
commit | a4706fa56c6258a2774595b390d79c2ebc4935d4 (patch) | |
tree | 2305c9c532f55eab635f6cac0c686bc6a1a9a3d3 | |
parent | 37c37c36ea52095f3f6928efbddd254e2ca42f6e (diff) | |
download | scintilla-mirror-a4706fa56c6258a2774595b390d79c2ebc4935d4.tar.gz |
Fixed memory leaks from bug #3007669.
-rw-r--r-- | gtk/PlatGTK.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx index 9e84815e2..d632b9aa6 100644 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -2245,8 +2245,10 @@ int ListBoxX::Find(const char *prefix) { gchar *s; gtk_tree_model_get(model, &iter, TEXT_COLUMN, &s, -1); if (s && (0 == strncmp(prefix, s, strlen(prefix)))) { + g_free(s); return i; } + g_free(s); valid = gtk_tree_model_iter_next(model, &iter) != FALSE; i++; } @@ -2267,6 +2269,7 @@ void ListBoxX::GetValue(int n, char *value, int len) { } else { value[0] = '\0'; } + g_free(text); } // g_return_if_fail causes unnecessary compiler warning in release compile. |