summaryrefslogtreecommitdiff
path: root/python/sourcelist.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2009-07-12 21:22:58 +0200
committerJulian Andres Klode <jak@debian.org>2009-07-12 21:22:58 +0200
commitb0abeea43f6e51c452af68d8ec9bf3d0f701d772 (patch)
tree050238e8a08c7abac81fe130145494a0be16cd02 /python/sourcelist.cc
parent5505821c0d13ff66e5943b610705f1c9b202d7fa (diff)
downloadpython-apt-b0abeea43f6e51c452af68d8ec9bf3d0f701d772.tar.gz
python/acquire.cc: Fix segmentation faults, introduce PyAcquireObject.
Make AcquireItem objects raise ValueError instead of segfaulting when the Acquire() object is shut down or the main object (e.g. AcquireFile) is deallocated. This is implemented by using a vector of the AcquireItem objects, and setting AcquireItem->Object = NULL, when the memory 'Object' previously pointed to is going to be deleted.
Diffstat (limited to 'python/sourcelist.cc')
0 files changed, 0 insertions, 0 deletions