Sfoglia il codice sorgente

Removed unnecessary call to SDL_free().

Philipp Wiesemann 10 anni fa
parent
commit
22855927ce
1 ha cambiato i file con 0 aggiunte e 1 eliminazioni
  1. 0 1
      src/video/emscripten/SDL_emscriptenvideo.c

+ 0 - 1
src/video/emscripten/SDL_emscriptenvideo.c

@@ -72,7 +72,6 @@ Emscripten_CreateDevice(int devindex)
     device = (SDL_VideoDevice *) SDL_calloc(1, sizeof(SDL_VideoDevice));
     if (!device) {
         SDL_OutOfMemory();
-        SDL_free(device);
         return (0);
     }