comparison src/cdrom/linux/SDL_syscdrom.c @ 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 92947e3a18db
children a1b03ba2fcd0
comparison
equal deleted inserted replaced
3852:5b5e549382b3 3853:c6d3c5549886
216 216
217 /* Handle "supermount" filesystem mounts */ 217 /* Handle "supermount" filesystem mounts */
218 if ( SDL_strcmp(mnt_type, MNTTYPE_SUPER) == 0 ) { 218 if ( SDL_strcmp(mnt_type, MNTTYPE_SUPER) == 0 ) {
219 tmp = SDL_strstr(mntent->mnt_opts, "fs="); 219 tmp = SDL_strstr(mntent->mnt_opts, "fs=");
220 if ( tmp ) { 220 if ( tmp ) {
221 SDL_free(mnt_type); 221 SDL_stack_free(mnt_type);
222 mnt_type = SDL_strdup(tmp + SDL_strlen("fs=")); 222 mnt_type = SDL_strdup(tmp + SDL_strlen("fs="));
223 if ( mnt_type ) { 223 if ( mnt_type ) {
224 tmp = SDL_strchr(mnt_type, ','); 224 tmp = SDL_strchr(mnt_type, ',');
225 if ( tmp ) { 225 if ( tmp ) {
226 *tmp = '\0'; 226 *tmp = '\0';
227 } 227 }
228 } 228 }
229 } 229 }
230 tmp = SDL_strstr(mntent->mnt_opts, "dev="); 230 tmp = SDL_strstr(mntent->mnt_opts, "dev=");
231 if ( tmp ) { 231 if ( tmp ) {
232 SDL_free(mnt_dev); 232 SDL_stack_free(mnt_dev);
233 mnt_dev = SDL_strdup(tmp + SDL_strlen("dev=")); 233 mnt_dev = SDL_strdup(tmp + SDL_strlen("dev="));
234 if ( mnt_dev ) { 234 if ( mnt_dev ) {
235 tmp = SDL_strchr(mnt_dev, ','); 235 tmp = SDL_strchr(mnt_dev, ',');
236 if ( tmp ) { 236 if ( tmp ) {
237 *tmp = '\0'; 237 *tmp = '\0';