From 7d90ca9b4c7b0d6e7415214f60449ee4ae78c084 Mon Sep 17 00:00:00 2001 From: Lukas Diekmann Date: Wed, 4 Mar 2015 14:01:33 +0000 Subject: [PATCH] Temporary fix for issue #210 --- src/cairo/context.rs | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/cairo/context.rs b/src/cairo/context.rs index 9eb7170..3c0bb04 100644 --- a/src/cairo/context.rs +++ b/src/cairo/context.rs @@ -54,13 +54,15 @@ impl Drop for RectangleVec { #[repr(C)] pub struct Context(*mut cairo_t); -impl Drop for Context { - fn drop(&mut self) { - unsafe { - ffi::cairo_destroy(self.get_ptr()) - } - } -} +// Temporarily fix issue #210 +// For more info, see discussion at https://github.com/jeremyletang/rgtk/issues/210 +// impl Drop for Context { +// fn drop(&mut self) { +// unsafe { +// ffi::cairo_destroy(self.get_ptr()) +// } +// } +// } impl Context { pub fn get_ptr(&self) -> *mut cairo_t {