xmpedit

GTK+ editor for XMP metadata embedded in images
git clone https://code.djc.id.au/git/xmpedit/
commit 13d1f876491f79f0e8540d88280a0ab9df6bad07
parent 4d0dc0d97e46cfc40ed2653b7994b709cdf501f3
Author: Dan Callaghan <djc@djc.id.au>
Date:   Sun, 12 Sep 2010 10:16:44 +1000

oops, memory management fail

Diffstat:
Msrc/evix2-glib.cpp | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/evix2-glib.cpp b/src/evix2-glib.cpp
@@ -33,6 +33,11 @@ static void exiv2_image_dispose(GObject *object) {
 
 static void exiv2_image_finalize(GObject *object) {
     G_OBJECT_CLASS(exiv2_image_parent_class)->finalize(object);
+    // XXX maybe this should be in dispose instead??
+    g_return_if_fail(object != NULL);
+    Exiv2ImagePrivate *priv = GET_PRIVATE(object);
+    g_return_if_fail(priv->image != NULL);
+    delete priv->image;
 }
 
 static void exiv2_image_class_init(Exiv2ImageClass *klass) {