diff --git a/gtk/gtkimage.c b/gtk/gtkimage.c
index 988605a..606e4e6 100644
--- a/gtk/gtkimage.c
+++ b/gtk/gtkimage.c
@@ -365,6 +365,12 @@ gtk_image_finalize (GObject *object)
 
   g_clear_object (&image->priv->icon_helper);
   
+  if (image->priv->filename)
+    {
+      g_free (image->priv->filename);
+      image->priv->filename = NULL;
+    }
+
   G_OBJECT_CLASS (gtk_image_parent_class)->finalize (object);
 };
 
