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=/trunk/; revision=3365
This commit is contained in:
Jans Granseuer 2007-10-28 19:55:37 +00:00 committed by Thomas James Alexander Thurman
parent 1bf37776c3
commit 118d962b2d
2 changed files with 12 additions and 0 deletions

View File

@ -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

View File

@ -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);
}