Skip to content
Browse files

added note about freeing SDL_CreateRGBSurfaceFrom

  • Loading branch information...
1 parent 5f05512 commit 5e166209a74060cad3ddb6b557c2ec95930c90c5 @FROGGS FROGGS committed Oct 14, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/Core/objects/Surface.xs
View
2 src/Core/objects/Surface.xs
@@ -13,6 +13,8 @@
void _free_surface(void *object)
{
+ // Frees the resources used by a previously created SDL_Surface.
+ // If the surface was created using SDL_CreateRGBSurfaceFrom then the pixel data is not freed.
SDL_FreeSurface((SDL_Surface *)object);
}

0 comments on commit 5e16620

Please sign in to comment.
Something went wrong with that request. Please try again.