From: espen Date: Tue, 11 Dec 2007 14:26:11 +0000 (+0000) Subject: Bug fix in callback-wrapper X-Git-Url: https://git.distorted.org.uk/~mdw/clg/commitdiff_plain/ec90e77eaa20ca8e70b762929556292bd7ad22b1 Bug fix in callback-wrapper --- diff --git a/gffi/proxy.lisp b/gffi/proxy.lisp index 0252520..7ce9f05 100644 --- a/gffi/proxy.lisp +++ b/gffi/proxy.lisp @@ -20,7 +20,7 @@ ;; TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE ;; SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -;; $Id: proxy.lisp,v 1.9 2007-06-20 11:13:45 espen Exp $ +;; $Id: proxy.lisp,v 1.10 2007-12-11 14:26:11 espen Exp $ (in-package "GFFI") @@ -599,7 +599,7 @@ object at the give location.")) (define-type-method callback-wrapper ((type struct) var arg form) (let ((class (type-expand type))) - `(let ((,var (ensure-proxy-instance ',class ,arg :finalize nil))) + `(let ((,var (ensure-proxy-instance ',class ,arg :reference nil :finalize nil))) (unwind-protect ,form (invalidate-instance ,var)))))