aboutsummaryrefslogtreecommitdiff
path: root/libindicator
diff options
context:
space:
mode:
Diffstat (limited to 'libindicator')
-rw-r--r--libindicator/indicator-object.c3
1 files changed, 1 insertions, 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);