aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-04-12 15:27:25 -0500
committerTed Gould <ted@gould.cx>2011-04-12 15:27:25 -0500
commitdd97a3c05e3fa507ad772591e788cf89dcad9db7 (patch)
treed80a7c1ceccc6688f0c585545c3eb85aea889bcb
parentd24fd27425f63785fb73b0a96efd21631b4fe8d0 (diff)
parentbee98f757e7e8d1f17160ac85c489e679e6ed908 (diff)
downloadayatana-indicator-application-dd97a3c05e3fa507ad772591e788cf89dcad9db7.tar.gz
ayatana-indicator-application-dd97a3c05e3fa507ad772591e788cf89dcad9db7.tar.bz2
ayatana-indicator-application-dd97a3c05e3fa507ad772591e788cf89dcad9db7.zip
Protect from canceling
-rw-r--r--src/application-service-appstore.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/application-service-appstore.c b/src/application-service-appstore.c
index 4cafdfc..e2d95c4 100644
--- a/src/application-service-appstore.c
+++ b/src/application-service-appstore.c
@@ -1111,6 +1111,11 @@ props_cb (GObject * object, GAsyncResult * res, gpointer user_data)
GDBusProxy * proxy = g_dbus_proxy_new_for_bus_finish(res, &error);
+ if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED)) {
+ g_error_free (error);
+ return; // Must exit before accessing freed memory
+ }
+
if (app->props_cancel != NULL) {
g_object_unref(app->props_cancel);
app->props_cancel = NULL;