From 82224a8eb16026ffe7cc704a4191a6d11c2db9f8 Mon Sep 17 00:00:00 2001 From: kthakore Date: Sat, 16 Oct 2010 18:53:03 -0400 Subject: [PATCH] Oh yeah we hand over the SDL_Rect to perl to handle ... anyway keeping the check until valgrind is ran --- src/SDLx/Surface.xs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SDLx/Surface.xs b/src/SDLx/Surface.xs index 03a19622..108ed61c 100644 --- a/src/SDLx/Surface.xs +++ b/src/SDLx/Surface.xs @@ -190,7 +190,7 @@ surfacex_draw_rect ( surface, rt, color ) r_rect.y = v_rect->y; r_rect.w = v_rect->w; r_rect.h = v_rect->h; - if( newly_created_rect == 1 ) { safefree( v_rect); } +// if( newly_created_rect == 1 ) { safefree( v_rect); } } SDL_FillRect(surface, &r_rect, m_color);