mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
Don't leak appinfo.
2008-02-01 Alexander Larsson <alexl@redhat.com> * gappinfo.c (g_app_info_launch_default_for_uri): Don't leak appinfo. svn path=/trunk/; revision=6439
This commit is contained in:
parent
feb28ce3a7
commit
d9b8be3b5c
@ -1,3 +1,8 @@
|
||||
2008-02-01 Alexander Larsson <alexl@redhat.com>
|
||||
|
||||
* gappinfo.c (g_app_info_launch_default_for_uri):
|
||||
Don't leak appinfo.
|
||||
|
||||
2008-02-01 Alexander Larsson <alexl@redhat.com>
|
||||
|
||||
* gappinfo.[ch]:
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user