]> git.0d.be Git - empathy.git/blobdiff - libempathy-gtk/empathy-avatar-chooser.c
Fix memleak in avatar_chooser_update_preview_cb. Free string returned by
[empathy.git] / libempathy-gtk / empathy-avatar-chooser.c
index 04a5ed63eb2a3dc951df4f38b564f29c349d9356..8c18e8cca3875391b93b7044d7cdce57f1f76cf9 100644 (file)
@@ -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);