diff options
author | Christian Persch <chpe@src.gnome.org> | 2008-10-13 12:49:19 +0000 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2008-10-13 12:49:19 +0000 |
commit | f7cddea837ced329ebb8a5872f41ed360ccc09d1 (patch) | |
tree | 571836e0fd726d56b76e7ec6494e9e7c2d270be9 | |
parent | 32d109a467c964fa329c9f304f7806e58841bdd7 (diff) | |
download | nautilus-f7cddea837ced329ebb8a5872f41ed360ccc09d1.tar.gz |
Plug a mem leak. Bug #552691.
* src/nautilus-image-properties-page.c: Plug a mem leak. Bug #552691.
svn path=/trunk/; revision=14726
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | src/nautilus-image-properties-page.c | 8 |
2 files changed, 11 insertions, 1 deletions
@@ -1,3 +1,7 @@ +2008-10-13 Christian Persch <chpe@gnome.org> + + * src/nautilus-image-properties-page.c: Plug a mem leak. Bug #552691. + 2008-10-13 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-mime-application-chooser.c: diff --git a/src/nautilus-image-properties-page.c b/src/nautilus-image-properties-page.c index 1c82bec5f..235e2c2b1 100644 --- a/src/nautilus-image-properties-page.c +++ b/src/nautilus-image-properties-page.c @@ -324,6 +324,10 @@ load_finished (NautilusImagePropertiesPage *page) GString *str; if (page->details->got_size) { +#ifdef HAVE_EXIF + ExifData *exif_data; +#endif + str = g_string_new (NULL); format = gdk_pixbuf_loader_get_format (page->details->loader); @@ -343,7 +347,9 @@ load_finished (NautilusImagePropertiesPage *page) g_free (desc); #ifdef HAVE_EXIF - append_exifdata_string (exif_loader_get_data (page->details->exifldr), str); + exif_data = exif_loader_get_data (page->details->exifldr); + append_exifdata_string (exif_data, str); + exif_data_unref (exif_data); #endif /*HAVE_EXIF*/ #ifdef HAVE_EXEMPI append_xmpdata_string(page->details->xmp, str); |