From 66b0d1beb9907963f35dd36ccf3e193eb641f694 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 8 Oct 2009 19:48:44 -0400 Subject: Making it so that we use the same unref code as everyone else. --- libindicator/indicator-object.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libindicator/indicator-object.c b/libindicator/indicator-object.c index a70a3ec..6a638ec 100644 --- a/libindicator/indicator-object.c +++ b/libindicator/indicator-object.c @@ -157,8 +157,7 @@ indicator_object_new_from_file (const gchar * file) /* This is the case where there is nothing to display, kinda odd that we'd have a module with nothing. */ g_warning("No label or icon. Odd."); - g_object_unref(object); - return NULL; + goto unrefandout; } return INDICATOR_OBJECT(object); -- cgit v1.2.3