CVSROOT:        /cvs/gnome
Module name:    glib
Changes by:     tml     05/08/31 16:30:44

Modified files:
        .              : Tag: glib-2-8 ChangeLog 
        glib           : Tag: glib-2-8 gutils.c gutils.h 

Log message:
2005-08-31  Tor Lillqvist  <[EMAIL PROTECTED]>

* glib/gutils.h: Wrapping atexit() is a bad idea on Windows, where
the EXE and each DLL have their own atexit function chains.

#define g_atexit as atexit instead. This means it has a
better chance of doing what the caller wants. For instance,
gtkhtml calls g_atexit() registering a function in gtkhtml
itself. This caused a crash when g_atexit() was implemented as a
function in the GLib DLL. The gtkhtml DLL was already unloaded by
the time the GLib DLL got unloaded.

* glib/gutils.c: #undef the #define mentioned above, to also get a
real g_atexit() into the DLL for backward compatibility.

URL : 
http://cvs.gnome.org/bonsai/cvsquery.cgi?branch=&dir=glib&who=tml&date=explicit&mindate=2005-08-31%2016:29&maxdate=2005-08-31%2016:31

_______________________________________________
cvs-commits-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/cvs-commits-list

Reply via email to