From 2b9a1d8ad3b67256d3b0467912790900b48dd699 Mon Sep 17 00:00:00 2001 From: Daggerbot Date: Thu, 19 Nov 2015 10:33:23 -0800 Subject: [PATCH] Pass XFree param as '*mut _' to avoid c_void conflicts. --- src/platform/with_glx/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/with_glx/utils.rs b/src/platform/with_glx/utils.rs index 960ea50..9588ac0 100644 --- a/src/platform/with_glx/utils.rs +++ b/src/platform/with_glx/utils.rs @@ -27,7 +27,7 @@ impl ScopedXFree { impl Drop for ScopedXFree { fn drop(&mut self) { if !self.ptr.is_null() { - unsafe { XFree(self.ptr as *mut c_void); }; + unsafe { XFree(self.ptr as *mut _); }; } } }