]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
* python/service.py(ObjectType::_reflect_on_signal, _reflect_on_method):
authorJohn (J5) Palmieri <johnp@redhat.com>
Thu, 13 Oct 2005 23:34:12 +0000 (23:34 +0000)
committerJohn (J5) Palmieri <johnp@redhat.com>
Thu, 13 Oct 2005 23:34:12 +0000 (23:34 +0000)
reclaim memory outside of the loop and use del istead of just setting
the key to None

ChangeLog
python/service.py

index 9e3da63c43b232ac5bc7007186ff1399bc1320ea..e62e1e8317b62d94f16d815f21c01f6d8001368f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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
index efdda12d91aa115328fa53edb30da69cafa4494f..a43918377126f086d0eebf1867770cefdca3206a 100644 (file)
@@ -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