mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 15:56:23 +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
This commit is contained in:
commit
95ebaa26aa
@ -2437,7 +2437,6 @@ g_clear_handle_id (guint *tag_ptr,
|
||||
if (_handle_id > 0)
|
||||
{
|
||||
*tag_ptr = 0;
|
||||
if (clear_func != NULL)
|
||||
clear_func (_handle_id);
|
||||
}
|
||||
}
|
||||
|
@ -590,7 +590,6 @@ void g_clear_handle_id (guint *tag_ptr,
|
||||
if (_handle_id > 0) \
|
||||
{ \
|
||||
*_tag_ptr = 0; \
|
||||
if (clear_func != NULL) \
|
||||
clear_func (_handle_id); \
|
||||
} \
|
||||
} G_STMT_END
|
||||
|
Loading…
Reference in New Issue
Block a user