aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-avatar-chooser.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2009-04-20 01:22:33 +0800
committerLars-Peter Clausen <lars@metafoo.de>2009-04-21 16:42:14 +0800
commit98cea1baa922b8e1dfbd05c29751b6fc7d5651ac (patch)
tree6add1b5f56a93a488cb299aadf92870b6a94fdb3 /libempathy-gtk/empathy-avatar-chooser.c
parent2a49858ada3c4cba3263441b1970b9a7dc7d5ed5 (diff)
downloadgsoc2013-empathy-98cea1baa922b8e1dfbd05c29751b6fc7d5651ac.tar
gsoc2013-empathy-98cea1baa922b8e1dfbd05c29751b6fc7d5651ac.tar.gz
gsoc2013-empathy-98cea1baa922b8e1dfbd05c29751b6fc7d5651ac.tar.bz2
gsoc2013-empathy-98cea1baa922b8e1dfbd05c29751b6fc7d5651ac.tar.lz
gsoc2013-empathy-98cea1baa922b8e1dfbd05c29751b6fc7d5651ac.tar.xz
gsoc2013-empathy-98cea1baa922b8e1dfbd05c29751b6fc7d5651ac.tar.zst
gsoc2013-empathy-98cea1baa922b8e1dfbd05c29751b6fc7d5651ac.zip
Fix memleak in avatar_chooser_update_preview_cb. Free string returned by
gtk_file_chooser_get_preview_filename.
Diffstat (limited to 'libempathy-gtk/empathy-avatar-chooser.c')
-rw-r--r--libempathy-gtk/empathy-avatar-chooser.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-avatar-chooser.c b/libempathy-gtk/empathy-avatar-chooser.c
index 04a5ed63e..8c18e8cca 100644
--- a/libempathy-gtk/empathy-avatar-chooser.c
+++ b/libempathy-gtk/empathy-avatar-chooser.c
@@ -884,6 +884,8 @@ avatar_chooser_update_preview_cb (GtkFileChooser *file_chooser,
"gtk-dialog-question",
GTK_ICON_SIZE_DIALOG);
}
+
+ g_free (filename);
}
gtk_file_chooser_set_preview_widget_active (file_chooser, TRUE);