Fix one small leak in error case.

2008-08-21  Colin Walters  <walters@verbum.org>

	* girepository/girparser.c (g_irepository_require):
	Fix one small leak in error case.

svn path=/trunk/; revision=434
This commit is contained in:
Colin Walters 2008-08-21 13:26:53 +00:00 committed by Colin Walters
parent 9152ea35ab
commit 3011ce4539

View File

@ -552,6 +552,7 @@ g_irepository_require (GIRepository *repository,
if (typelib == NULL) if (typelib == NULL)
{ {
g_free (full_path);
g_set_error (error, G_IREPOSITORY_ERROR, g_set_error (error, G_IREPOSITORY_ERROR,
G_IREPOSITORY_ERROR_TYPELIB_NOT_FOUND, G_IREPOSITORY_ERROR_TYPELIB_NOT_FOUND,
"Typelib file for namespace '%s' was not found in search" "Typelib file for namespace '%s' was not found in search"