xfcalender coreing

Benedikt Meurer benedikt.meurer at unix-ag.uni-siegen.de
Sun Aug 29 14:16:22 CEST 2004


Mickael 'Korbinus' Graf wrote:
> Antonio SJ Musumeci wrote:
> 
>> #0  0x4056c194 in g_object_unref () from /usr/lib/libgobject-2.0.so.0
>> #1  0x0805013d in create_mainWin () at mainbox.c:386
>> #2  0x0804f6b6 in main (argc=1, argv=0xbffffcf4) at main.c:360

> how did you get that? I cannot get this message here.

I guess Antonio compiled glib w/ asserts disabled, therefore it no 
longer checks the parameter given to g_object_unref. So, if the 
xfcalendar icon couldn't be loaded for whatever that means, you'll pass 
a NULL pointer to g_object_unref and xfcalendar dumps core (because 
g_object_unref is trying to access ((GObject *) NULL)->ref_count.

Just add a if (xfcalendar_logo != NULL) and everything will be ok :)

> Cheers
> Mickaël

Benedikt



More information about the Xfce4-dev mailing list