mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 05:56:14 +01:00
Make g_simple_async_result_is_valid work without source
The problem was pointed out by Xavier Claessens in bug 626208.
This commit is contained in:
parent
402ad1958c
commit
7de6658f74
@ -757,10 +757,12 @@ g_simple_async_result_is_valid (GAsyncResult *result,
|
|||||||
cmp_source = g_async_result_get_source_object (result);
|
cmp_source = g_async_result_get_source_object (result);
|
||||||
if (cmp_source != source)
|
if (cmp_source != source)
|
||||||
{
|
{
|
||||||
g_object_unref (cmp_source);
|
if (cmp_source != NULL)
|
||||||
|
g_object_unref (cmp_source);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
g_object_unref (cmp_source);
|
if (cmp_source != NULL)
|
||||||
|
g_object_unref (cmp_source);
|
||||||
|
|
||||||
return source_tag == g_simple_async_result_get_source_tag (simple);
|
return source_tag == g_simple_async_result_get_source_tag (simple);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user