mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-06 17:30:35 +01:00
macros: allow NULL pointer in nm_clear_g_signal_handler()
It does not make sense to issue an error. This should be a helper function.
"NetworkManager[18341]: nm_clear_g_signal_handler: assertion 'G_IS_OBJECT (self)' failed"
error started since commit e6d7fee5a6 due to that.
This commit is contained in:
parent
90b5e4e3c5
commit
c33416178f
1 changed files with 2 additions and 1 deletions
|
|
@ -210,7 +210,8 @@ nm_clear_g_source (guint *id)
|
|||
static inline gboolean
|
||||
nm_clear_g_signal_handler (gpointer self, guint *id)
|
||||
{
|
||||
g_return_val_if_fail (G_IS_OBJECT (self), FALSE);
|
||||
if (!self)
|
||||
return FALSE;
|
||||
|
||||
if (id && *id) {
|
||||
g_signal_handler_disconnect (self, *id);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue