summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--python/service.py10
2 files changed, 10 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 9e3da63c..e62e1e83 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2005-10-13 John (J5) Palmieri <johnp@redhat.com>
+ * 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
+
+2005-10-13 John (J5) Palmieri <johnp@redhat.com>
+
* python/service.py (ObjectType::_reflect_on_signal): Always close
signal tag even when there are no arguments
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