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:
parent
bdf8640cab
commit
c0c861e473
|
@ -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:
|
||||
|
|
|
@ -66,6 +66,11 @@ not be used directly. Use the accessor functions below.
|
|||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG NotifyNotification:status-icon ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
<!-- ##### ARG NotifyNotification:summary ##### -->
|
||||
<para>
|
||||
|
||||
|
|
|
@ -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 &&
|
||||
|
|
Loading…
Reference in New Issue