diff options
author | Benjamin Otte <otte@redhat.com> | 2010-09-09 23:09:07 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2010-09-26 15:11:42 +0200 |
commit | 0c285bad75e9d05fab66798427e832bbc0bb79e4 (patch) | |
tree | aac9f72e23fb9c2dc8ad1ef83600df6861b5e90a /gtk/gtkiconfactory.c | |
parent | 8929321cbaf2f03316ba3ec061606a53af438698 (diff) | |
download | gtk+-0c285bad75e9d05fab66798427e832bbc0bb79e4.tar.gz |
iconfactory: Initialize varibale to NULL in failure path
Otherwise we use random memory and that is not good.
Diffstat (limited to 'gtk/gtkiconfactory.c')
-rw-r--r-- | gtk/gtkiconfactory.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkiconfactory.c b/gtk/gtkiconfactory.c index 4f854d8395..92fea10119 100644 --- a/gtk/gtkiconfactory.c +++ b/gtk/gtkiconfactory.c @@ -1463,6 +1463,8 @@ render_icon_name_pixbuf (GtkIconSource *icon_source, tmp_pixbuf = gtk_icon_info_load_icon (info, &error); gtk_icon_info_free (info); } + else + tmp_pixbuf = NULL; } else { |