summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJans Granseuer <jensgr@gmx.net>2007-10-28 19:57:18 +0000
committerThomas James Alexander Thurman <tthurman@src.gnome.org>2007-10-28 19:57:18 +0000
commitdc98676780db85d2cd418a0f9abcead122b28f68 (patch)
tree9e44852775e6a338267c9664482a9988c81e2d9e
parent994c1441b8606d1017c9b419d5cd14a8fe7e998b (diff)
downloadmetacity-dc98676780db85d2cd418a0f9abcead122b28f68.tar.gz
Free title of preview when the preview is destroyed. Closes #469682.
2007-10-28 Jans Granseuer <jensgr@gmx.net> * src/preview-widget.c (meta_preview_finalize): Free title of preview when the preview is destroyed. Closes #469682. svn path=/branches/gnome-2-20/; revision=3366
-rw-r--r--ChangeLog5
-rw-r--r--src/preview-widget.c7
2 files changed, 12 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 3123b970..4454b9f5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-10-28 Jans Granseuer <jensgr@gmx.net>
+
+ * src/preview-widget.c (meta_preview_finalize): Free title of
+ preview when the preview is destroyed. Closes #469682.
+
2007-10-27 Alex R.M. Turner <armtuk@gmail.com>
* src/tabpopup.c (tab_entry_new): Truncate the string to
diff --git a/src/preview-widget.c b/src/preview-widget.c
index 5aa0fa56..08048e7b 100644
--- a/src/preview-widget.c
+++ b/src/preview-widget.c
@@ -128,6 +128,13 @@ meta_preview_new (void)
static void
meta_preview_finalize (GObject *object)
{
+ MetaPreview *preview;
+
+ preview = META_PREVIEW (object);
+
+ g_free (preview->title);
+ preview->title = NULL;
+
G_OBJECT_CLASS (parent_class)->finalize (object);
}