[gnome-control-center] shell: Don't crash when loading the icon fails
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] shell: Don't crash when loading the icon fails
- Date: Mon, 17 Oct 2011 12:58:19 +0000 (UTC)
commit e1dbaef587a7f6e09670a7d8173ecfb43405a7ab
Author: Christian Persch <chpe gnome org>
Date: Thu Sep 29 21:25:44 2011 +0200
shell: Don't crash when loading the icon fails
https://bugzilla.gnome.org/show_bug.cgi?id=660513
shell/cc-shell-model.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/shell/cc-shell-model.c b/shell/cc-shell-model.c
index 736c0a9..2dd0e6d 100644
--- a/shell/cc-shell-model.c
+++ b/shell/cc-shell-model.c
@@ -34,7 +34,7 @@ load_pixbuf_for_gicon (GIcon *icon)
{
GtkIconTheme *theme;
GtkIconInfo *icon_info;
- GdkPixbuf *pixbuf;
+ GdkPixbuf *pixbuf = NULL;
GError *err = NULL;
if (icon == NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]