mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-10 11:14:05 +02: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:
@@ -757,9 +757,11 @@ 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)
|
||||||
{
|
{
|
||||||
|
if (cmp_source != NULL)
|
||||||
g_object_unref (cmp_source);
|
g_object_unref (cmp_source);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
if (cmp_source != NULL)
|
||||||
g_object_unref (cmp_source);
|
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);
|
||||||
|
Reference in New Issue
Block a user