OSDN Git Service

alvaBC6 driver: When terminating, drop the ctypes function instance for the key callb...
authorJames Teh <jamie@jantrid.net>
Wed, 2 Feb 2011 02:45:57 +0000 (12:45 +1000)
committerJames Teh <jamie@jantrid.net>
Wed, 2 Feb 2011 02:45:57 +0000 (12:45 +1000)
commit1d084e3fb59c1cd07a01b2a521901e0a5c8e7975
treecb2bdc9aa5119121e6944de15bc26a7a94e94cb3
parenta8a484e9eeb4925a1d22bf7807989b01f07c3649
alvaBC6 driver: When terminating, drop the ctypes function instance for the key callback, as it is holding a reference to an instance method, which causes a reference cycle.
This doesn't currently cause a memory leak because there is no __del__, but it does mean that it takes a lot longer to be garbage collected than it should.
source/brailleDisplayDrivers/alvaBC6.py