src/main/windows/version.rc
author Philipp Wiesemann <philipp.wiesemann@arcor.de>
Wed, 29 Oct 2014 20:20:47 +0100
changeset 9201 21d9f9babb30
parent 9121 00d99eff96a6
child 9619 b94b6d0bff0f
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.
     1 
     2 #include "winresrc.h"
     3 
     4 LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
     5 
     6 /////////////////////////////////////////////////////////////////////////////
     7 //
     8 // Version
     9 //
    10 
    11 VS_VERSION_INFO VERSIONINFO
    12  FILEVERSION 2,0,4,0
    13  PRODUCTVERSION 2,0,4,0
    14  FILEFLAGSMASK 0x3fL
    15  FILEFLAGS 0x0L
    16  FILEOS 0x40004L
    17  FILETYPE 0x2L
    18  FILESUBTYPE 0x0L
    19 BEGIN
    20     BLOCK "StringFileInfo"
    21     BEGIN
    22         BLOCK "040904b0"
    23         BEGIN
    24             VALUE "CompanyName", "\0"
    25             VALUE "FileDescription", "SDL\0"
    26             VALUE "FileVersion", "2, 0, 4, 0\0"
    27             VALUE "InternalName", "SDL\0"
    28             VALUE "LegalCopyright", "Copyright  2014 Sam Lantinga\0"
    29             VALUE "OriginalFilename", "SDL2.dll\0"
    30             VALUE "ProductName", "Simple DirectMedia Layer\0"
    31             VALUE "ProductVersion", "2, 0, 4, 0\0"
    32         END
    33     END
    34     BLOCK "VarFileInfo"
    35     BEGIN
    36         VALUE "Translation", 0x409, 1200
    37     END
    38 END