diff --git a/ChangeLog b/ChangeLog index f20c3b7..fe60c54 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Thu Feb 15 00:52:56 PST 2007 Christian Hammond + + * libnotify/notification.c: + - Fix a bug in notify_notification_add_action where the function + to free the user data was never called, causing memory leaks. + This fixes bug #119. + Mon Nov 13 23:42:07 PST 2006 Christian Hammond * tests/Makefile.am: diff --git a/docs/reference/tmpl/notification.sgml b/docs/reference/tmpl/notification.sgml index 8e94f86..2d3c3fb 100644 --- a/docs/reference/tmpl/notification.sgml +++ b/docs/reference/tmpl/notification.sgml @@ -66,6 +66,11 @@ not be used directly. Use the accessor functions below. + + + + + diff --git a/libnotify/notification.c b/libnotify/notification.c index c7c8b24..98773e5 100644 --- a/libnotify/notification.c +++ b/libnotify/notification.c @@ -1195,6 +1195,7 @@ notify_notification_add_action(NotifyNotification *notification, pair = g_new0(CallbackPair, 1); pair->cb = callback; pair->user_data = user_data; + pair->free_func = free_func; g_hash_table_insert(priv->action_map, g_strdup(action), pair); if (notification->priv->has_nondefault_actions &&