diff options
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | bindings/python/libproxy.py | 3 |
2 files changed, 3 insertions, 1 deletions
@@ -19,6 +19,7 @@ New in version 0.4.8 (not yet released) - #172: Allow to forcibly build pacrunner as module (-DBIPR={ON,OFF}) - #173: Libproxy doesn't build with gcc 4.7 - #147: Use ${CMAKE_DL_LIBS} instead of assuming libdl is correct. + - #176: python bindings: guard the destructor. New in version 0.4.7 ============================== diff --git a/bindings/python/libproxy.py b/bindings/python/libproxy.py index 563c2de..15f0210 100644 --- a/bindings/python/libproxy.py +++ b/bindings/python/libproxy.py @@ -121,5 +121,6 @@ class ProxyFactory(object): return proxies def __del__(self): - _libproxy.px_proxy_factory_free(self._pf) + if _libproxy: + _libproxy.px_proxy_factory_free(self._pf) |