[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] r2936 - branches/pingus_sdl/src
From: |
nehalmistry |
Subject: |
[Pingus-CVS] r2936 - branches/pingus_sdl/src |
Date: |
Wed, 15 Aug 2007 21:28:58 +0200 |
Author: nehalmistry
Date: 2007-08-15 21:28:44 +0200 (Wed, 15 Aug 2007)
New Revision: 2936
Modified:
branches/pingus_sdl/src/sprite.cpp
Log:
fix leak
Modified: branches/pingus_sdl/src/sprite.cpp
===================================================================
--- branches/pingus_sdl/src/sprite.cpp 2007-08-15 19:17:17 UTC (rev 2935)
+++ branches/pingus_sdl/src/sprite.cpp 2007-08-15 19:28:44 UTC (rev 2936)
@@ -387,6 +387,8 @@
SDL_FillRect(new_surface, NULL,
SDL_MapRGBA(new_surface->format, color.r, color.g, color.b, color.a));
SDL_BlitSurface(new_surface, NULL, this->get_surface(), NULL);
}
+
+ SDL_FreeSurface(new_surface);
}
/* EOF */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] r2936 - branches/pingus_sdl/src,
nehalmistry <=