Use correct function to free allocated mem SDL-1.2
authorPatrice Mandin <patmandin@gmail.com>
Tue, 05 Sep 2006 19:31:48 +0000
branchSDL-1.2
changeset 3853c6d3c5549886
parent 3852 5b5e549382b3
child 3854 f1816773a309
Use correct function to free allocated mem
src/cdrom/linux/SDL_syscdrom.c
     1.1 --- a/src/cdrom/linux/SDL_syscdrom.c	Sun Sep 03 21:34:11 2006 +0000
     1.2 +++ b/src/cdrom/linux/SDL_syscdrom.c	Tue Sep 05 19:31:48 2006 +0000
     1.3 @@ -218,7 +218,7 @@
     1.4  			if ( SDL_strcmp(mnt_type, MNTTYPE_SUPER) == 0 ) {
     1.5  				tmp = SDL_strstr(mntent->mnt_opts, "fs=");
     1.6  				if ( tmp ) {
     1.7 -					SDL_free(mnt_type);
     1.8 +					SDL_stack_free(mnt_type);
     1.9  					mnt_type = SDL_strdup(tmp + SDL_strlen("fs="));
    1.10  					if ( mnt_type ) {
    1.11  						tmp = SDL_strchr(mnt_type, ',');
    1.12 @@ -229,7 +229,7 @@
    1.13  				}
    1.14  				tmp = SDL_strstr(mntent->mnt_opts, "dev=");
    1.15  				if ( tmp ) {
    1.16 -					SDL_free(mnt_dev);
    1.17 +					SDL_stack_free(mnt_dev);
    1.18  					mnt_dev = SDL_strdup(tmp + SDL_strlen("dev="));
    1.19  					if ( mnt_dev ) {
    1.20  						tmp = SDL_strchr(mnt_dev, ',');