Browse Source

Get rid of mem management macros from storm_sdl_rw.cpp

pull/1777/head
Vladimir Olteanu 5 years ago committed by Anders Jenbo
parent
commit
06f2670406
  1. 4
      Source/storm/storm_sdl_rw.cpp

4
Source/storm/storm_sdl_rw.cpp

@ -71,13 +71,13 @@ static int SFileRwRead(struct SDL_RWops *context, void *ptr, int size, int maxnu
static int SFileRwClose(struct SDL_RWops *context)
{
mem_free_dbg(context);
delete context;
return 0;
}
SDL_RWops *SFileRw_FromStormHandle(HANDLE handle)
{
SDL_RWops *result = (SDL_RWops *)DiabloAllocPtr(sizeof(SDL_RWops));
SDL_RWops *result = new SDL_RWops();
std::memset(result, 0, sizeof(*result));
#ifndef USE_SDL1

Loading…
Cancel
Save