[anjuta-extras] class-inheritance: Fixed warnings.



commit b40bac2783125c773e34dadf598b49d05c258e5f
Author: Naba Kumar <naba gnome org>
Date:   Wed Mar 3 19:16:21 2010 +0200

    class-inheritance: Fixed warnings.

 plugins/class-inheritance/class-inherit.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/plugins/class-inheritance/class-inherit.c b/plugins/class-inheritance/class-inherit.c
index e03f8db..83c7ad4 100644
--- a/plugins/class-inheritance/class-inherit.c
+++ b/plugins/class-inheritance/class-inherit.c
@@ -401,7 +401,8 @@ cls_node_expand (ClsNode *cls_node, ClsNodeExpansionType expansion_type)
 				cls_item->cls_node = cls_node;
 				cls_item->sym_name = g_strdup (name);
 				cls_item->order = var_order++;
-				gdk_pixbuf_ref (icon);
+				if (icon)
+					gdk_pixbuf_ref (icon);
 				cls_item->icon = icon;
 				
 				g_hash_table_insert (cls_node->members,
@@ -446,7 +447,8 @@ cls_node_expand (ClsNode *cls_node, ClsNodeExpansionType expansion_type)
 					cls_item->sym_name = g_strconcat (name, "()", NULL);
 					cls_item->args = g_strdup (args);
 					cls_item->order = method_order++;
-					gdk_pixbuf_ref (icon);
+					if (icon)
+						gdk_pixbuf_ref (icon);
 					cls_item->icon = icon;
 					
 					g_string_append_printf (label, "|%s()", cls_item->sym_name);



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