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:
Alexander Larsson 2008-02-01 11:42:25 +00:00 committed by Alexander Larsson
parent feb28ce3a7
commit d9b8be3b5c
2 changed files with 8 additions and 0 deletions

View File

@ -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]:

View File

@ -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;
}