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.

This commit is contained in:
Christian Hammond 2007-02-15 08:54:39 +00:00
parent bdf8640cab
commit c0c861e473
3 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,10 @@
Thu Feb 15 00:52:56 PST 2007 Christian Hammond <chipx86@chipx86.com>
* 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 <chipx86@chipx86.com>
* tests/Makefile.am:

View File

@ -66,6 +66,11 @@ not be used directly. Use the accessor functions below.
</para>
<!-- ##### ARG NotifyNotification:status-icon ##### -->
<para>
</para>
<!-- ##### ARG NotifyNotification:summary ##### -->
<para>

View File

@ -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 &&