aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--libempathy-gtk/empathy-smiley-manager.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 167ce7900..5df2d6cd5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-09-19 Xavier Claessens <xclaesse@gmail.com>
+
+ * libempathy-gtk/empathy-smiley-manager.c: Fix a leak.
+
2007-09-11 Xavier Claessens <xclaesse@gmail.com>
* libempathy-gtk/empathy-main-window.c:
diff --git a/libempathy-gtk/empathy-smiley-manager.c b/libempathy-gtk/empathy-smiley-manager.c
index 3d6f9645e..cb726fcdd 100644
--- a/libempathy-gtk/empathy-smiley-manager.c
+++ b/libempathy-gtk/empathy-smiley-manager.c
@@ -108,6 +108,7 @@ empathy_smiley_free (EmpathySmiley *smiley)
g_object_unref (smiley->pixbuf);
}
g_free (smiley->str);
+ g_slice_free (EmpathySmiley, smiley);
}
static void
@@ -211,7 +212,7 @@ smiley_manager_add_valist (EmpathySmileyManager *manager,
va_list var_args)
{
EmpathySmileyManagerPriv *priv = GET_PRIV (manager);
- const gchar *str;
+ const gchar *str;
for (str = first_str; str; str = va_arg (var_args, gchar*)) {
smiley_manager_tree_insert (priv->tree, smiley, str);