changeset 3853:c6d3c5549886 SDL-1.2

Use correct function to free allocated mem
author Patrice Mandin <patmandin@gmail.com>
date Tue, 05 Sep 2006 19:31:48 +0000
parents 5b5e549382b3
children f1816773a309
files src/cdrom/linux/SDL_syscdrom.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/cdrom/linux/SDL_syscdrom.c	Sun Sep 03 21:34:11 2006 +0000
+++ b/src/cdrom/linux/SDL_syscdrom.c	Tue Sep 05 19:31:48 2006 +0000
@@ -218,7 +218,7 @@
 			if ( SDL_strcmp(mnt_type, MNTTYPE_SUPER) == 0 ) {
 				tmp = SDL_strstr(mntent->mnt_opts, "fs=");
 				if ( tmp ) {
-					SDL_free(mnt_type);
+					SDL_stack_free(mnt_type);
 					mnt_type = SDL_strdup(tmp + SDL_strlen("fs="));
 					if ( mnt_type ) {
 						tmp = SDL_strchr(mnt_type, ',');
@@ -229,7 +229,7 @@
 				}
 				tmp = SDL_strstr(mntent->mnt_opts, "dev=");
 				if ( tmp ) {
-					SDL_free(mnt_dev);
+					SDL_stack_free(mnt_dev);
 					mnt_dev = SDL_strdup(tmp + SDL_strlen("dev="));
 					if ( mnt_dev ) {
 						tmp = SDL_strchr(mnt_dev, ',');