README-SDL.txt
author Philipp Wiesemann <philipp.wiesemann@arcor.de>
Wed, 29 Oct 2014 20:20:47 +0100
changeset 9201 21d9f9babb30
parent 9025 d09d4b578e77
child 9507 b1e690e9c5b3
permissions -rw-r--r--
Fixed bug 2647 - Memory leak in SDL_AddHintCallback function - SDL_hints.c

Nitz

Variable entry going out of scope leaks the storage it points to, at:

/* Need to add a hint entry for this watcher */
hint = (SDL_Hint *)SDL_malloc(sizeof(*hint));
if (!hint) {
return;
}

Patch is attached.
gabomdq@9023
     1
gabomdq@9023
     2
Please distribute this file with the SDL runtime environment:
gabomdq@9023
     3
gabomdq@9023
     4
The Simple DirectMedia Layer (SDL for short) is a cross-platform library
gabomdq@9023
     5
designed to make it easy to write multi-media software, such as games and
gabomdq@9023
     6
emulators.
gabomdq@9023
     7
gabomdq@9023
     8
The Simple DirectMedia Layer library source code is available from:
gabomdq@9023
     9
http://www.libsdl.org/
gabomdq@9023
    10
gabomdq@9023
    11
This library is distributed under the terms of the zlib license:
gabomdq@9023
    12
http://www.zlib.net/zlib_license.html
gabomdq@9023
    13