Fixed bug 2295 - Memory leak in IMG_LoadWEBP_RW

Timur

SDL_Surface *IMG_LoadWEBP_RW(SDL_RWops *src)
{
    ...

    // buffer for data
    raw_data = (uint8_t*) SDL_malloc( raw_data_size );
    ...

    // read data from src into raw_data
    r = SDL_RWread(src, raw_data, 1, raw_data_size );
    ....

    // create surface and allocate memory for sdl surface
    surface = SDL_CreateRGBSurface(SDL_SWSURFACE,
            features.width, features.height,
            features.has_alpha?32:24, Rmask,Gmask,Bmask,Amask);
    ...

    // decode raw_data, put result into surface
    ret = lib.webp_decode_rgba_into( raw_data, raw_data_size, (uint8_t
    ...
    return surface;

    // raw_data never be freed