Hi, Shawn Rutledge
My first attempt to automate the DBusMessageIter memory management
has failed cause sub-iterator saves the reference to the parent
iterator. Using finalizer maybe a good idea but introduce
unnecessary gc penalty (not sure,need to be proofed), DBusMessage
reference-counted with explicit life scope, so as for me there is no
shame to unref message each time in the library code.
To reproduce memory leak i use sligtly changed car example, one
script send complex message in the endless loop, another receive.
|