From 12869d0152595a4b32bb53617922adc1512dde53 Mon Sep 17 00:00:00 2001 From: Simon Schampijer Date: Thu, 31 Jan 2008 20:48:03 +0100 Subject: [PATCH] Release exported dbus object #6127 --- lib/sugar/activity/activity.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/sugar/activity/activity.py b/lib/sugar/activity/activity.py index f6dbd378..9d87e9ed 100644 --- a/lib/sugar/activity/activity.py +++ b/lib/sugar/activity/activity.py @@ -54,6 +54,7 @@ import traceback import gtk, gobject import dbus +import dbus.service import json from sugar import util @@ -872,6 +873,9 @@ class Activity(Window, gtk.Container): else: self.destroy() + # Make the exported object inaccessible + dbus.service.Object.remove_from_connection(self._bus) + def __realize_cb(self, window): wm.set_bundle_id(window.window, self.get_bundle_id()) wm.set_activity_id(window.window, str(self._activity_id))