aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-04-12 15:14:38 -0500
committerTed Gould <ted@gould.cx>2011-04-12 15:14:38 -0500
commitd24fd27425f63785fb73b0a96efd21631b4fe8d0 (patch)
tree760d8eebc7572b0233384348199c2e5ccc02013e
parentf17f35feaf2f6d413302b813ef451d20491f4894 (diff)
parent2e0265d59422ab35d244f6102a9c6b9aff743c30 (diff)
downloadayatana-indicator-application-d24fd27425f63785fb73b0a96efd21631b4fe8d0.tar.gz
ayatana-indicator-application-d24fd27425f63785fb73b0a96efd21631b4fe8d0.tar.bz2
ayatana-indicator-application-d24fd27425f63785fb73b0a96efd21631b4fe8d0.zip
Makes sure to free the application using the application_free() function
-rw-r--r--src/application-service-appstore.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/application-service-appstore.c b/src/application-service-appstore.c
index 3e827d5..4cafdfc 100644
--- a/src/application-service-appstore.c
+++ b/src/application-service-appstore.c
@@ -498,7 +498,8 @@ got_all_properties (GObject * source_object, GAsyncResult * res,
if (menu == NULL || id == NULL || category == NULL || status == NULL ||
icon_name == NULL) {
g_warning("Notification Item on object %s of %s doesn't have enough properties.", app->dbus_object, app->dbus_name);
- g_free(app); // Need to do more than this, but it gives the idea of the flow we're going for.
+ if (!app->validated)
+ application_free(app);
}
else {
app->validated = TRUE;