summaryrefslogtreecommitdiff
path: root/vcl/unx
diff options
context:
space:
mode:
authorMatthew J. Francis <mjay.francis@gmail.com>2014-09-25 18:44:52 +0800
committerCaolán McNamara <caolanm@redhat.com>2014-09-25 12:16:06 +0000
commit456fb845113ac79954027728c5773f4552b33501 (patch)
tree968c65981b944af08134c51f705e78b9c1fe65f5 /vcl/unx
parentd7fdf70c4433a41debb4729607df081f15b4ed54 (diff)
Fix miscellaneous memory leaks
thumbnailview.cxx: ::ImplInitSettings is called from various places other than the constructor, so mpItemAttrs must be freed each time gloactiongroup.cxx: Must call g_list_free on list returned by g_hash_table_get_keys Change-Id: Id5a592520987a1596debdbc48bfa171a537e400b Reviewed-on: https://gerrit.libreoffice.org/11638 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/unx')
-rw-r--r--vcl/unx/gtk/window/gloactiongroup.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/unx/gtk/window/gloactiongroup.cxx b/vcl/unx/gtk/window/gloactiongroup.cxx
index e6c10b709391..60f46cd7f45f 100644
--- a/vcl/unx/gtk/window/gloactiongroup.cxx
+++ b/vcl/unx/gtk/window/gloactiongroup.cxx
@@ -430,6 +430,8 @@ g_lo_action_group_clear (GLOActionGroup *group)
{
g_lo_action_group_remove (group, (gchar*) element->data);
}
+
+ g_list_free (keys);
}
#endif