GApplication: Plug a memory leak
authorMatthias Clasen <mclasen@redhat.com>
Wed, 15 Oct 2014 03:22:14 +0000 (23:22 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 15 Oct 2014 03:22:14 +0000 (23:22 -0400)
We were not freeing resource_path.

gio/gapplication.c

index d39d55a..ebbc450 100644 (file)
@@ -1218,6 +1218,8 @@ g_application_finalize (GObject *object)
   if (application->priv->notifications)
     g_object_unref (application->priv->notifications);
 
+  g_free (application->priv->resource_path);
+
   G_OBJECT_CLASS (g_application_parent_class)
     ->finalize (object);
 }