Rev 1262: make sure we keep a handle open to the ra session. in file:///data/jelmer/bzr-svn/0.4-ra-cext/
Jelmer Vernooij
jelmer at samba.org
Sun Jun 22 03:55:39 BST 2008
At file:///data/jelmer/bzr-svn/0.4-ra-cext/
------------------------------------------------------------
revno: 1262
revision-id: jelmer at samba.org-20080622025538-i33abbrpdy04kdto
parent: jelmer at samba.org-20080622015032-4dqkqo13gqygwsed
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.4-ra-cext
timestamp: Sun 2008-06-22 04:55:38 +0200
message:
make sure we keep a handle open to the ra session.
modified:
ra.c ra.pyx-20080313140933-qybkqaxe3m4mcll7-1
=== modified file 'ra.c'
--- a/ra.c 2008-06-22 01:49:59 +0000
+++ b/ra.c 2008-06-22 02:55:38 +0000
@@ -480,6 +480,8 @@
RemoteAccessObject *ra = (RemoteAccessObject *)_ra;
ra->busy = false;
+
+ Py_XDECREF(ra);
}
#define RUN_RA_WITH_POOL(pool, ra, cmd) \
@@ -745,6 +747,7 @@
ret->reporter = reporter;
ret->report_baton = report_baton;
ret->pool = temp_pool;
+ Py_INCREF(ra);
ret->done_cb = ra_done_handler;
ret->done_baton = ra;
return (PyObject *)ret;
@@ -788,6 +791,7 @@
ret->reporter = reporter;
ret->report_baton = report_baton;
ret->pool = temp_pool;
+ Py_INCREF(ra);
ret->done_cb = ra_done_handler;
ret->done_baton = ra;
return (PyObject *)ret;
@@ -890,6 +894,8 @@
ra->busy = false;
return NULL;
}
+
+ Py_INCREF(ra);
return new_editor_object(editor, edit_baton, pool,
&Editor_Type, ra_done_handler, ra);
}
More information about the bazaar-commits
mailing list