forked from enlightenment/enlightenment
When the module gets unloaded, kill open Config Panels. If left open, they
cause segfaults for things like mouse_events on buttons, etc, etc. SVN revision: 31379
This commit is contained in:
parent
8128302bd5
commit
adcd7517f8
|
@ -179,6 +179,18 @@ e_configure_show(E_Container *con)
|
|||
_e_configure = eco;
|
||||
}
|
||||
|
||||
EAPI void
|
||||
e_configure_del(void)
|
||||
{
|
||||
E_Configure *eco;
|
||||
|
||||
if (_e_configure)
|
||||
{
|
||||
eco = _e_configure;
|
||||
e_object_del(E_OBJECT(eco));
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
_e_configure_free(E_Configure *eco)
|
||||
{
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
#define E_CONF_H
|
||||
|
||||
EAPI void e_configure_show(E_Container *con);
|
||||
EAPI void e_configure_del(void);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -54,6 +54,7 @@ e_modapi_init(E_Module *m)
|
|||
EAPI int
|
||||
e_modapi_shutdown(E_Module *m)
|
||||
{
|
||||
e_configure_del();
|
||||
/* remove module-supplied menu additions */
|
||||
if (maug)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue