diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-07-12 21:22:58 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-07-12 21:22:58 +0200 |
| commit | b0abeea43f6e51c452af68d8ec9bf3d0f701d772 (patch) | |
| tree | 050238e8a08c7abac81fe130145494a0be16cd02 /python/cache.cc | |
| parent | 5505821c0d13ff66e5943b610705f1c9b202d7fa (diff) | |
| download | python-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/cache.cc')
0 files changed, 0 insertions, 0 deletions
