diff --git a/gio/ChangeLog b/gio/ChangeLog index bfd581115..f9c5e5ec0 100644 --- a/gio/ChangeLog +++ b/gio/ChangeLog @@ -1,3 +1,8 @@ +2008-02-01 Alexander Larsson + + * gappinfo.c (g_app_info_launch_default_for_uri): + Don't leak appinfo. + 2008-02-01 Alexander Larsson * gappinfo.[ch]: diff --git a/gio/gappinfo.c b/gio/gappinfo.c index e5885e423..add826b20 100644 --- a/gio/gappinfo.c +++ b/gio/gappinfo.c @@ -566,6 +566,9 @@ g_app_info_launch_default_for_uri (const char *uri, l.next = l.prev = NULL; res = g_app_info_launch_uris (app_info, &l, launch_context, error); + + g_object_unref (app_info); + return res; }