From 7667a2ae4ae4912f8130895e828d1dfb87050870 Mon Sep 17 00:00:00 2001 From: "John (J5) Palmieri" Date: Thu, 13 Oct 2005 23:34:12 +0000 Subject: * 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 --- python/service.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'python') 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 + ' \n'%(arg) - #reclaim some memory - func._dbus_args = None - + #reclaim some memory + del func._dbus_args reflection_data = reflection_data + ' \n' return reflection_data @@ -141,8 +140,9 @@ class ObjectType(type): reflection_data = ' \n'%(func.__name__) for arg in func._dbus_args: reflection_data = reflection_data + ' \n'%(arg) - #reclaim some memory - func._dbus_args = None + + #reclaim some memory + del func._dbus_args reflection_data = reflection_data + ' \n' return reflection_data -- cgit