aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui
diff options
context:
space:
mode:
authorHiroyuki Ikezoe <poincare@ikezoe.net>2007-08-02 19:49:06 +0800
committerHiroyuki Ikezoe <hiikezoe@src.gnome.org>2007-08-02 19:49:06 +0800
commit073e0654982dafaff66f17d0b89aa68328aec7f5 (patch)
tree1d6fdef32ca1846c45a596aece8f7111bc2827ab /addressbook/gui
parentdd734afc66b781ac1ac5fb15ef4a4207ad04eb6a (diff)
downloadgsoc2013-evolution-073e0654982dafaff66f17d0b89aa68328aec7f5.tar
gsoc2013-evolution-073e0654982dafaff66f17d0b89aa68328aec7f5.tar.gz
gsoc2013-evolution-073e0654982dafaff66f17d0b89aa68328aec7f5.tar.bz2
gsoc2013-evolution-073e0654982dafaff66f17d0b89aa68328aec7f5.tar.lz
gsoc2013-evolution-073e0654982dafaff66f17d0b89aa68328aec7f5.tar.xz
gsoc2013-evolution-073e0654982dafaff66f17d0b89aa68328aec7f5.tar.zst
gsoc2013-evolution-073e0654982dafaff66f17d0b89aa68328aec7f5.zip
** Fix for bug #462007
2007-08-02 Hiroyuki Ikezoe <poincare@ikezoe.net> ** Fix for bug #462007 * gui/contact-editor/e-contact-editor.c: (update_preview_cb): Plugged memory leak. svn path=/trunk/; revision=33928
Diffstat (limited to 'addressbook/gui')
-rw-r--r--addressbook/gui/contact-editor/e-contact-editor.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/addressbook/gui/contact-editor/e-contact-editor.c b/addressbook/gui/contact-editor/e-contact-editor.c
index 2c94e0cbd1..62a53ba25c 100644
--- a/addressbook/gui/contact-editor/e-contact-editor.c
+++ b/addressbook/gui/contact-editor/e-contact-editor.c
@@ -2791,8 +2791,12 @@ update_preview_cb (GtkFileChooser *file_chooser, gpointer data)
pixbuf = gdk_pixbuf_new_from_file_at_size (filename, 128, 128, NULL);
if (!pixbuf) {
- filename = e_icon_factory_get_icon_filename ("stock_person",E_ICON_SIZE_DIALOG);
- pixbuf = gdk_pixbuf_new_from_file_at_size (filename, 128, 128, NULL);
+ gchar *alternate_file;
+ alternate_file = e_icon_factory_get_icon_filename ("stock_person",E_ICON_SIZE_DIALOG);
+ if (alternate_file) {
+ pixbuf = gdk_pixbuf_new_from_file_at_size (alternate_file, 128, 128, NULL);
+ g_free (alternate_file);
+ }
}
g_free (filename);