GDBusProxy: Fix error handling in synchronous initialization codepath

Signed-off-by: David Zeuthen <davidz@redhat.com>
This commit is contained in:
David Zeuthen 2010-06-09 17:08:34 -04:00
parent 653921e17a
commit ed7f59770e

View File

@ -863,7 +863,11 @@ initable_init (GInitable *initable,
* fact that GetAll() failed
*/
//g_debug ("error: %d %d %s", error->domain, error->code, error->message);
g_error_free (error);
if (error != NULL)
{
g_error_free (*error);
*error = NULL;
}
ret = TRUE;
goto out;
}