[empathy/gnome-2-26] Fix memleak in avatar_chooser_update_preview_cb. Free string returned by



commit a385af5764a163d46dff4ec608b54bb679fd05cb
Author: Lars-Peter Clausen <lars metafoo de>
Date:   Sun Apr 19 19:22:33 2009 +0200

    Fix memleak in avatar_chooser_update_preview_cb. Free string returned by
    gtk_file_chooser_get_preview_filename.
---
 libempathy-gtk/empathy-avatar-chooser.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libempathy-gtk/empathy-avatar-chooser.c b/libempathy-gtk/empathy-avatar-chooser.c
index 04a5ed6..8c18e8c 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]