e-modules/places: fix segv on unload when signal handler is NULL
SVN revision: 63199
This commit is contained in:
parent
d978ea758a
commit
59ccd5269d
|
@ -139,12 +139,12 @@ places_shutdown(void)
|
||||||
if (conn)
|
if (conn)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_HAL_MOUNT
|
#ifdef HAVE_HAL_MOUNT
|
||||||
e_dbus_signal_handler_del(conn, hal_sh_added);
|
if (hal_sh_added) e_dbus_signal_handler_del(conn, hal_sh_added);
|
||||||
e_dbus_signal_handler_del(conn, hal_sh_removed);
|
if (hal_sh_removed) e_dbus_signal_handler_del(conn, hal_sh_removed);
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_UDISKS_MOUNT
|
#ifdef HAVE_UDISKS_MOUNT
|
||||||
e_dbus_signal_handler_del(conn, udisks_sh_added);
|
if (udisks_sh_added) e_dbus_signal_handler_del(conn, udisks_sh_added);
|
||||||
e_dbus_signal_handler_del(conn, udisks_sh_removed);
|
if (udisks_sh_removed) e_dbus_signal_handler_del(conn, udisks_sh_removed);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue