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:
Christopher Michael 2007-08-18 10:45:38 +00:00
parent 8128302bd5
commit adcd7517f8
3 changed files with 14 additions and 0 deletions

View File

@ -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)
{

View File

@ -5,6 +5,7 @@
#define E_CONF_H
EAPI void e_configure_show(E_Container *con);
EAPI void e_configure_del(void);
#endif
#endif

View File

@ -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)
{