From 1b6511fd72852a06c2143e7ddab053b87012ac00 Mon Sep 17 00:00:00 2001 From: Frederic Heihoff Date: Thu, 17 Jul 2014 21:05:34 +0200 Subject: [PATCH] Timer needed unsafe_destructor annotation --- src/sdl2/timer.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sdl2/timer.rs b/src/sdl2/timer.rs index 50a66e41..3bd7a7ce 100644 --- a/src/sdl2/timer.rs +++ b/src/sdl2/timer.rs @@ -70,6 +70,7 @@ impl<'a> Timer<'a> { } } +#[unsafe_destructor] impl<'a> Drop for Timer<'a> { fn drop(&mut self) { if self.remove_on_drop {