Checkout
djames
committed
on 15 Oct 08
Fix several segfaults in the ctypes python bindings by fixing pool usage
bugs and other typos.

[ In subversion/bindings/ctypes-python/csvn … Show more
Fix several segfaults in the ctypes python bindings by fixing pool usage

bugs and other typos.

[ In subversion/bindings/ctypes-python/csvn ]

 * repos.py

   (RemoteRepos._log_func_wrapper): Typo fix for tmp_file parameter.

   (RemoteRepos.svnimport): Return commit info in its own pool so that

   it doesn't get deleted before the function exits.

 * wc.py

   (WC.commit): Ditto.

   (WC.copy, WC.move, WC.delete): Pass commit info object into

   function instead of NULL pointer, per API spec.

   (WC._notify_func_wrapper, WC._status_wrapper, WC._info_wrapper,

    WC._list_wrapper): Copy arguments into dedicated pool

   to ensure it doesn't get deleted.

 * types.py

   (Hash.__init__, Hash.__setitem__) Typo fix so items are actually

   copied into local pool, as they should be.

Show less