aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-09-16 16:40:43 -0500
committerTed Gould <ted@gould.cx>2011-09-16 16:40:43 -0500
commitbed6607303b48274eeb533d3288abf0ad294d992 (patch)
treedff3737f892b7d01d7817cf9f18ac82e62285d83 /src
parent21a6e471080b9a2f2a7e15967e9584a2d606e02b (diff)
parenta11c8767e1769acf8a1da6a9d6f7d0df5f13a447 (diff)
downloadayatana-indicator-application-bed6607303b48274eeb533d3288abf0ad294d992.tar.gz
ayatana-indicator-application-bed6607303b48274eeb533d3288abf0ad294d992.tar.bz2
ayatana-indicator-application-bed6607303b48274eeb533d3288abf0ad294d992.zip
Pulling in mterry's additional fixes
Diffstat (limited to 'src')
-rw-r--r--src/application-service-appstore.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/application-service-appstore.c b/src/application-service-appstore.c
index 76e1c4a..edc517f 100644
--- a/src/application-service-appstore.c
+++ b/src/application-service-appstore.c
@@ -524,11 +524,27 @@ got_all_properties (GObject * source_object, GAsyncResult * res,
/* Now the optional properties */
+ g_free(app->icon_desc);
+ if (icon_desc != NULL) {
+ app->icon_desc = g_variant_dup_string(icon_desc, NULL);
+ }
+ else {
+ app->icon_desc = g_strdup("");
+ }
+
g_free(app->aicon);
if (aicon_name != NULL) {
app->aicon = g_variant_dup_string(aicon_name, NULL);
} else {
- app->aicon = NULL;
+ app->aicon = g_strdup("");
+ }
+
+ g_free(app->aicon_desc);
+ if (aicon_desc != NULL) {
+ app->aicon_desc = g_variant_dup_string(aicon_desc, NULL);
+ }
+ else {
+ app->aicon_desc = g_strdup("");
}
g_free(app->icon_theme_path);
@@ -750,6 +766,9 @@ application_free (Application * app)
if (app->icon_desc != NULL) {
g_free(app->icon_desc);
}
+ if (app->aicon != NULL) {
+ g_free(app->aicon);
+ }
if (app->aicon_desc != NULL) {
g_free(app->aicon_desc);
}