aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python/tests/t-file-name.py
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-05-27 10:25:59 +0000
committerJustus Winter <[email protected]>2016-05-27 10:25:59 +0000
commitebfe2300c33a3bad311e9ac1530e6c92636a08a4 (patch)
treefa0eadc62b574c5838664eb93c3dadc879ace5b1 /lang/python/tests/t-file-name.py
parentImprove comments. (diff)
downloadgpgme-ebfe2300c33a3bad311e9ac1530e6c92636a08a4.tar.gz
gpgme-ebfe2300c33a3bad311e9ac1530e6c92636a08a4.zip
python: Fix object deallocation.
Handing a reference to the wrapper object created a non-trivial circular reference that Pythons garbage collector is unable to break. Explicitly break it by using a weak reference. * lang/python/helpers.c (pygpgme_stash_callback_exception): Retrieve object from weak reference. * lang/python/pyme/core.py (Context.__del__): Free status callback. (Context.set_passphrase_cb): Use a weak reference. (Context.set_progress_cb): Likewise. (Context.set_status_cb): Likewise. (Context.op_edit): Likewise. Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'lang/python/tests/t-file-name.py')
0 files changed, 0 insertions, 0 deletions