summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorJohn (J5) Palmieri <johnp@redhat.com>2005-10-13 23:34:12 +0000
committerJohn (J5) Palmieri <johnp@redhat.com>2005-10-13 23:34:12 +0000
commit7667a2ae4ae4912f8130895e828d1dfb87050870 (patch)
tree6cb724a70516fe58543b40f4db3e3dee7be9176a /python
parent9cbcbb20ed113ebe8f03b0f5b4a0a18e00a41ca5 (diff)
* python/service.py(ObjectType::_reflect_on_signal, _reflect_on_method):
reclaim memory outside of the loop and use del istead of just setting the key to None
Diffstat (limited to 'python')
-rw-r--r--python/service.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/python/service.py b/python/service.py
index efdda12d..a4391837 100644
--- a/python/service.py
+++ b/python/service.py
@@ -130,9 +130,8 @@ class ObjectType(type):
for arg in func._dbus_args:
reflection_data = reflection_data + ' <arg name="%s" type="v" />\n'%(arg)
- #reclaim some memory
- func._dbus_args = None
-
+ #reclaim some memory
+ del func._dbus_args
reflection_data = reflection_data + ' </method>\n'
return reflection_data
@@ -141,8 +140,9 @@ class ObjectType(type):
reflection_data = ' <signal name="%s">\n'%(func.__name__)
for arg in func._dbus_args:
reflection_data = reflection_data + ' <arg name="%s" type="v" />\n'%(arg)
- #reclaim some memory
- func._dbus_args = None
+
+ #reclaim some memory
+ del func._dbus_args
reflection_data = reflection_data + ' </signal>\n'
return reflection_data