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, _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
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
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