changeset 2018:41a5fc1825b9

Use correct function to free allocated mem
author Patrice Mandin <patmandin@gmail.com>
date Tue, 05 Sep 2006 19:32:35 +0000
parents df06e6eb65c6
children d20f4510c718
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	Sat Sep 02 21:50:04 2006 +0000
+++ b/src/cdrom/linux/SDL_syscdrom.c	Tue Sep 05 19:32:35 2006 +0000
@@ -222,7 +222,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, ',');
@@ -233,7 +233,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, ',');