autogen.sh
author Philipp Wiesemann <philipp.wiesemann@arcor.de>
Wed, 29 Oct 2014 20:20:47 +0100
changeset 9201 21d9f9babb30
parent 7232 6f17d930be39
child 10398 165f98326b5c
permissions -rwxr-xr-x
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.
     1 #!/bin/sh
     2 #
     3 echo "Generating build information using autoconf"
     4 echo "This may take a while ..."
     5 
     6 # Regenerate configuration files
     7 cat acinclude/* >aclocal.m4
     8 found=false
     9 for autoconf in autoconf autoconf259 autoconf-2.59
    10 do if which $autoconf >/dev/null 2>&1; then $autoconf && found=true; break; fi
    11 done
    12 if test x$found = xfalse; then
    13     echo "Couldn't find autoconf, aborting"
    14     exit 1
    15 fi
    16 (cd test; sh autogen.sh)
    17 
    18 # Run configure for this platform
    19 echo "Now you are ready to run ./configure"