Mixer crashes the panel
Jasper Huijsmans
jasper at xfce.org
Sat Feb 28 23:15:05 CET 2004
Op za 28-02-2004, om 22:51 schreef Danny Milosavljevic:
> Hi,
>
> Am Sat, den 28.02.2004 schrieb Benedikt Meurer um 14:04:
> > Danny,
> >
> > The current mixer plugin causes panel crashes on exit. This is due to the fact
> > that you register the xfce_mixer_cache_vc_free() function to be called at exit
> > using atexit(). Normally, when the panel calls exit(), the mixer plugin is
> > already unloaded and the libc exit code will try to jump to an invalid memory
> > area -> core dump.
>
> eeeek !
>
> >
> > Instead of using atexit() you could either use the GModule close hook provided
> > by GLib or find yourself another way :-)
>
> Ok. How :)
>
It's a unique module, isn't it? You can clean resources in the free()
function.
Another option is to define a g_module_unload() function that will be
called automatically when the module is closed.
Jasper
More information about the Xfce4-dev
mailing list