[Xfce4-commits] [apps/ristretto] 01/01: Free EXIF data properly

noreply at xfce.org noreply at xfce.org
Wed Jul 10 20:59:06 CEST 2019


This is an automated email from the git hooks/post-receive script.

f   2   4   0   4       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/ristretto.

commit 3bf33d3767011f7d461b66ce924d514dcede5c35
Author: Igor <f2404 at yandex.ru>
Date:   Wed Jul 10 14:58:53 2019 -0400

    Free EXIF data properly
---
 src/file.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/file.c b/src/file.c
index 7c9ecd4..f8f3724 100644
--- a/src/file.c
+++ b/src/file.c
@@ -213,6 +213,11 @@ rstto_file_dispose (GObject *object)
             g_free (r_file->priv->collate_key);
             r_file->priv->collate_key = NULL;
         }
+        if (r_file->priv->exif_data)
+        {
+            exif_data_free (r_file->priv->exif_data);
+            r_file->priv->exif_data = NULL;
+        }
 
         for (i = 0; i < THUMBNAIL_SIZE_COUNT; ++i)
         {
@@ -512,8 +517,6 @@ rstto_file_get_orientation ( RsttoFile *r_file )
             r_file->priv->orientation = exif_get_short (
                     exif_entry->data,
                     exif_data_get_byte_order (exif_entry->parent->parent));
-
-            exif_entry_free (exif_entry);
         }
 
         /* If the orientation-tag is not set, default to NONE */

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list