mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-24 11:12:11 +01:00
Merge branch '1401-g_clear_handle_id-clear_func-not-nullable' into 'master'
g_clear_handle_id: don't accept NULL clear_func Closes #1401 See merge request GNOME/glib!55 (cherry picked from commit 95ebaa26aa5b2a5f6e5ee554a6d185d296f6dc08) 0f7c196c g_clear_handle_id: don't accept NULL clear_func
This commit is contained in:
parent
69dec2db49
commit
cfa28e152b
@ -2437,8 +2437,7 @@ g_clear_handle_id (guint *tag_ptr,
|
|||||||
if (_handle_id > 0)
|
if (_handle_id > 0)
|
||||||
{
|
{
|
||||||
*tag_ptr = 0;
|
*tag_ptr = 0;
|
||||||
if (clear_func != NULL)
|
clear_func (_handle_id);
|
||||||
clear_func (_handle_id);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -590,8 +590,7 @@ void g_clear_handle_id (guint *tag_ptr,
|
|||||||
if (_handle_id > 0) \
|
if (_handle_id > 0) \
|
||||||
{ \
|
{ \
|
||||||
*_tag_ptr = 0; \
|
*_tag_ptr = 0; \
|
||||||
if (clear_func != NULL) \
|
clear_func (_handle_id); \
|
||||||
clear_func (_handle_id); \
|
|
||||||
} \
|
} \
|
||||||
} G_STMT_END
|
} G_STMT_END
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user