aboutsummaryrefslogtreecommitdiff
path: root/libindicator/indicator-object.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-10-08 19:48:44 -0400
committerTed Gould <ted@canonical.com>2009-10-08 19:48:44 -0400
commit66b0d1beb9907963f35dd36ccf3e193eb641f694 (patch)
tree475fd9325e617364edd98b7f76643d4a0048008d /libindicator/indicator-object.c
parent4ea28685563e8f7267ca75c28541582b4f3e544b (diff)
downloadlibayatana-indicator-66b0d1beb9907963f35dd36ccf3e193eb641f694.tar.gz
libayatana-indicator-66b0d1beb9907963f35dd36ccf3e193eb641f694.tar.bz2
libayatana-indicator-66b0d1beb9907963f35dd36ccf3e193eb641f694.zip
Making it so that we use the same unref code as everyone else.
Diffstat (limited to 'libindicator/indicator-object.c')
-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);