emscripten-ports/SDL2_image — pull request #2 by codekitchen (2014-10-30 16:16:17+00:00)
Title: Copy the pixel data into the surface

It was getting immediately freed out from underneath the surface, SDL_CreateRGBSurfaceFrom does not copy the pixel data.

Fixes #1