CVSROOT: /cvs/gnome
Module name: gnome-menus
Changes by: markmc 05/08/12 02:43:06
Modified files:
. : ChangeLog
libmenu : menu-monitor.c
Log message:
2005-08-12 Mark McLoughlin <[EMAIL PROTECTED]>
Fixes bug #313232 [http://bugzilla.gnome.org/show_bug.cgi?id=313232] - memory
corruption issue where notifies
were being removed from under us as we walked the list of
notifies.
* libmenu/menu-monitor.c:
(menu_monitor_notify_ref),
(menu_monitor_notify_unref): make MenuMonitorNotify refcounted.
(menu_monitor_add_notify): set initial refcount.
(menu_monitor_remove_notify): when removing the notify, unset
the callback pointer and unref.
(invoke_notifies): make a copy of the notifies list and
ref each notify before invoking the callbacks - callbacks
may cause arbitrary notifies to be removed as we walk the
list.
(menu_monitor_unref): unref each of the notifies rather
than freeing them.
URL :
http://cvs.gnome.org/bonsai/cvsquery.cgi?branch=&dir=gnome-menus&who=markmc&date=explicit&mindate=2005-08-12%2002:42&maxdate=2005-08-12%2002:44
_______________________________________________
cvs-commits-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/cvs-commits-list