[gimp/metadata-browser] metadata: Fixup of freeing up memory.



commit 8bc8afdbb4abdef66d1ed9213073e3203304274b
Author: Roman Joost <roman bromeco de>
Date:   Tue Mar 5 14:05:48 2013 +1000

    metadata: Fixup of freeing up memory.

 plug-ins/metadata/xmp-model.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/metadata/xmp-model.c b/plug-ins/metadata/xmp-model.c
index 75676b4..c6975bd 100644
--- a/plug-ins/metadata/xmp-model.c
+++ b/plug-ins/metadata/xmp-model.c
@@ -870,10 +870,11 @@ xmp_model_parse_file (XMPModel     *xmp_model,
                   val_array[1], val_array[2], value);
    }
 
-  gexiv2_metadata_free (metadata);
-  g_free (tags);
   g_free (val_array);
   g_free (value);
+  g_free (tag);
+  g_free (tags);
+  gexiv2_metadata_free (metadata);
   return TRUE;
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]