forked from enlightenment/efl
sys_notify: fix shutdown of elm_sys_notify
Summary: When elm_sys_notify was not needed, its singleton instance is NULL. Eo complained about passing a NULL pointer. Thanks to bu5hm4n (Marcel Hollerbach) for the report. @fix Reviewers: stefan_schmidt, cedric Subscribers: bu5hm4n Differential Revision: https://phab.enlightenment.org/D3535 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
parent
3c1bf59d39
commit
3e4d946794
|
@ -225,9 +225,13 @@ _elm_sys_notify_class_constructor(Eo_Class *klass EINA_UNUSED)
|
|||
void
|
||||
_elm_unneed_sys_notify(void)
|
||||
{
|
||||
eo_do(_singleton,
|
||||
elm_obj_sys_notify_servers_set(ELM_SYS_NOTIFY_SERVER_NONE));
|
||||
eo_del(_singleton);
|
||||
Elm_Sys_Notify *manager = elm_sys_notify_singleton_get();
|
||||
if (manager)
|
||||
{
|
||||
eo_do(manager,
|
||||
elm_obj_sys_notify_servers_set(ELM_SYS_NOTIFY_SERVER_NONE));
|
||||
eo_del(manager);
|
||||
}
|
||||
}
|
||||
|
||||
EAPI Eina_Bool
|
||||
|
|
Loading…
Reference in New Issue