X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fphysfs%2Fphysfs_sdl.cpp;h=5ac13081479f91a2d2afb5866ff6eb72fcb1200f;hb=a113d3bd1feddd510e3b2852b0d42522735eee40;hp=2a22af6bdbe79278fea04d61f50c5ddcd9f82a1c;hpb=ff4c6994b952e26b854461d739eb3bcbfc30719f;p=supertux.git diff --git a/src/physfs/physfs_sdl.cpp b/src/physfs/physfs_sdl.cpp index 2a22af6bd..5ac130814 100644 --- a/src/physfs/physfs_sdl.cpp +++ b/src/physfs/physfs_sdl.cpp @@ -68,7 +68,7 @@ static int funcRead(struct SDL_RWops* context, void* ptr, int size, int maxnum) static int funcClose(struct SDL_RWops* context) { PHYSFS_file* file = (PHYSFS_file*) context->hidden.unknown.data1; - + PHYSFS_close(file); delete context; @@ -84,7 +84,7 @@ SDL_RWops* get_physfs_SDLRWops(const std::string& filename) << PHYSFS_getLastError(); throw std::runtime_error(msg.str()); } - + SDL_RWops* ops = new SDL_RWops(); ops->type = 0; ops->hidden.unknown.data1 = file;