Annotation of /trunk/libsdl/patches/libsdl-1.2.11-cdrom-correct-free-func.patch
Parent Directory | Revision Log
Revision 144 -
(hide annotations)
(download)
Tue May 8 20:06:05 2007 UTC (17 years, 4 months ago) by niro
File size: 896 byte(s)
Tue May 8 20:06:05 2007 UTC (17 years, 4 months ago) by niro
File size: 896 byte(s)
-import
1 | niro | 144 | http://bugs.gentoo.org/169477 |
2 | |||
3 | Revision 2744 | ||
4 | Modified Tue Sep 5 19:31:48 2006 UTC (6 months, 1 week ago) by pmandin | ||
5 | Use correct function to free allocated mem | ||
6 | |||
7 | --- branches/SDL-1.2/src/cdrom/linux/SDL_syscdrom.c 2006/07/10 21:03:59 2608 | ||
8 | +++ branches/SDL-1.2/src/cdrom/linux/SDL_syscdrom.c 2006/09/05 19:31:48 2744 | ||
9 | @@ -218,7 +218,7 @@ | ||
10 | if ( SDL_strcmp(mnt_type, MNTTYPE_SUPER) == 0 ) { | ||
11 | tmp = SDL_strstr(mntent->mnt_opts, "fs="); | ||
12 | if ( tmp ) { | ||
13 | - SDL_free(mnt_type); | ||
14 | + SDL_stack_free(mnt_type); | ||
15 | mnt_type = SDL_strdup(tmp + SDL_strlen("fs=")); | ||
16 | if ( mnt_type ) { | ||
17 | tmp = SDL_strchr(mnt_type, ','); | ||
18 | @@ -229,7 +229,7 @@ | ||
19 | } | ||
20 | tmp = SDL_strstr(mntent->mnt_opts, "dev="); | ||
21 | if ( tmp ) { | ||
22 | - SDL_free(mnt_dev); | ||
23 | + SDL_stack_free(mnt_dev); | ||
24 | mnt_dev = SDL_strdup(tmp + SDL_strlen("dev=")); | ||
25 | if ( mnt_dev ) { | ||
26 | tmp = SDL_strchr(mnt_dev, ','); |