Fixed memory leaks in testfilesystem.c (thanks, Nitz!).
authorRyan C. Gordon <icculus@icculus.org>
Sun, 31 May 2015 21:50:50 -0400
changeset 9693e8d9c63536f4
parent 9692 1982dc994254
child 9694 b847b89f4a64
Fixed memory leaks in testfilesystem.c (thanks, Nitz!).

Fixes Bugzilla #2991.
test/testfilesystem.c
     1.1 --- a/test/testfilesystem.c	Sun May 31 21:43:36 2015 -0400
     1.2 +++ b/test/testfilesystem.c	Sun May 31 21:50:50 2015 -0400
     1.3 @@ -32,7 +32,7 @@
     1.4        return 0;
     1.5      }
     1.6  
     1.7 -    SDL_Log("base path: '%s'\n", SDL_GetBasePath());
     1.8 +    SDL_Log("base path: '%s'\n", base_path);
     1.9      SDL_free(base_path);
    1.10  
    1.11      char *pref_path = SDL_GetPrefPath("libsdl", "testfilesystem");
    1.12 @@ -41,12 +41,9 @@
    1.13                     SDL_GetError());
    1.14        return 0;
    1.15      }
    1.16 -    SDL_Log("pref path: '%s'\n", SDL_GetPrefPath("libsdl", "testfilesystem"));
    1.17 +    SDL_Log("pref path: '%s'\n", pref_path); 
    1.18      SDL_free(pref_path);
    1.19  
    1.20 -    SDL_Log("base path: '%s'\n", SDL_GetBasePath());
    1.21 -    SDL_Log("pref path: '%s'\n", SDL_GetPrefPath("libsdl", "testfilesystem"));
    1.22 -
    1.23      SDL_Quit();
    1.24      return 0;
    1.25  }