aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-smiley-manager.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2007-09-19 20:16:07 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2007-09-19 20:16:07 +0800
commitf637a06fb631be72db06bc5f45ad2449f80e35e7 (patch)
treedfe8762c0e2d42ec27ccaf670f95646c0f56bf16 /libempathy-gtk/empathy-smiley-manager.c
parent1216405a579a6dab1c38c75691c6b501a1438b64 (diff)
downloadgsoc2013-empathy-f637a06fb631be72db06bc5f45ad2449f80e35e7.tar
gsoc2013-empathy-f637a06fb631be72db06bc5f45ad2449f80e35e7.tar.gz
gsoc2013-empathy-f637a06fb631be72db06bc5f45ad2449f80e35e7.tar.bz2
gsoc2013-empathy-f637a06fb631be72db06bc5f45ad2449f80e35e7.tar.lz
gsoc2013-empathy-f637a06fb631be72db06bc5f45ad2449f80e35e7.tar.xz
gsoc2013-empathy-f637a06fb631be72db06bc5f45ad2449f80e35e7.tar.zst
gsoc2013-empathy-f637a06fb631be72db06bc5f45ad2449f80e35e7.zip
Fix a leak.
2007-09-19 Xavier Claessens <xclaesse@gmail.com> * libempathy-gtk/empathy-smiley-manager.c: Fix a leak. svn path=/trunk/; revision=300
Diffstat (limited to 'libempathy-gtk/empathy-smiley-manager.c')
-rw-r--r--libempathy-gtk/empathy-smiley-manager.c3
1 files changed, 2 insertions, 1 deletions
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);