diff options
author | Dominique Leuenberger <dimstar@opensuse.org> | 2016-03-21 15:11:38 +0100 |
---|---|---|
committer | Dominique Leuenberger <dimstar@opensuse.org> | 2016-03-21 15:11:38 +0100 |
commit | 4ef1af1f04bf4d69c3eef42e7f8f24fef9e3fcd0 (patch) | |
tree | 4db11024e571fc667059a7d7b8c95e6ac914c2f1 | |
parent | e6881f27792b7c90a983157757e4dabc4bdd1f54 (diff) | |
parent | 76b89df0efc0fe817d320b7b34b2b0530ffd5538 (diff) | |
download | libproxy-git-4ef1af1f04bf4d69c3eef42e7f8f24fef9e3fcd0.tar.gz |
Merge pull request #19 from amigadave/master
python: Avoid a crash on 64-bit systems
-rw-r--r-- | bindings/python/libproxy.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bindings/python/libproxy.py b/bindings/python/libproxy.py index cb75a4d..7bddba9 100644 --- a/bindings/python/libproxy.py +++ b/bindings/python/libproxy.py @@ -40,8 +40,12 @@ if platform.system() == "Windows": else: _libc = _load("c", 6) +_libc.free.argtypes = ctypes.c_void_p, + # Load libproxy _libproxy = _load("proxy", 1) +_libproxy.px_proxy_factory_new.restype = ctypes.POINTER(ctypes.c_void_p) +_libproxy.px_proxy_factory_free.argtypes = ctypes.c_void_p, _libproxy.px_proxy_factory_get_proxies.restype = ctypes.POINTER(ctypes.c_void_p) class ProxyFactory(object): |