diff options
author | Ted Gould <ted@gould.cx> | 2012-03-07 14:11:47 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2012-03-07 14:11:47 -0600 |
commit | e34b660a8e7477cc0bb120f062074c6e079efa39 (patch) | |
tree | 1dd5457ac7bdab516bd7aa9aa2bc90cb70e84ca1 /libindicator/indicator-object.c | |
parent | c83d72a33f81a3aad6c85971b81caeceeb0834dd (diff) | |
parent | 67872e2808a7c4f4d414822198e4a3f951bdf411 (diff) | |
download | libayatana-indicator-e34b660a8e7477cc0bb120f062074c6e079efa39.tar.gz libayatana-indicator-e34b660a8e7477cc0bb120f062074c6e079efa39.tar.bz2 libayatana-indicator-e34b660a8e7477cc0bb120f062074c6e079efa39.zip |
* New upstream release.
* Fix branching past initialization of variables (LP: #939061)
* Support new FD.o Desktop Actions (LP: #942042)
* Fix valgrind error on unload (LP: #719457)
Diffstat (limited to 'libindicator/indicator-object.c')
-rw-r--r-- | libindicator/indicator-object.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/libindicator/indicator-object.c b/libindicator/indicator-object.c index 17a6d1d..ca821af 100644 --- a/libindicator/indicator-object.c +++ b/libindicator/indicator-object.c @@ -464,21 +464,16 @@ indicator_object_new_from_file (const gchar * file) goto unrefandout; } - IndicatorObjectPrivate * priv = INDICATOR_OBJECT_GET_PRIVATE(object); /* Now we can track the module */ - priv->module = module; + INDICATOR_OBJECT_GET_PRIVATE(object)->module = module; return INDICATOR_OBJECT(object); /* Error, let's drop the object and return NULL. Sad when this happens. */ unrefandout: - if (object != NULL) { - g_object_unref(object); - } - if (module != NULL) { - g_object_unref(module); - } + g_clear_object (&object); + g_clear_object (&module); g_warning("Error building IndicatorObject from file: %s", file); return NULL; } |