diff include/SDL_compat.h @ 2037:6bb97f41ab4b

Fixed bug #329 On tracing it turns out to fail from SDL_WM_SetCaption() On going through the function it looks like the SDL_free() function is called every alternate time with an invalid pointer that has already been freed.
author Sam Lantinga <slouken@libsdl.org>
date Sat, 23 Sep 2006 22:51:37 +0000
parents 83946ee0ff1f
children adf732f1f016
line wrap: on
line diff
--- a/include/SDL_compat.h	Fri Sep 22 21:52:20 2006 +0000
+++ b/include/SDL_compat.h	Sat Sep 23 22:51:37 2006 +0000
@@ -147,7 +147,7 @@
                                                             surface);
 extern DECLSPEC void SDLCALL SDL_WM_SetCaption(const char *title,
                                                const char *icon);
-extern DECLSPEC void SDLCALL SDL_WM_GetCaption(char **title, char **icon);
+extern DECLSPEC void SDLCALL SDL_WM_GetCaption(const char **title, const char **icon);
 extern DECLSPEC void SDLCALL SDL_WM_SetIcon(SDL_Surface * icon, Uint8 * mask);
 extern DECLSPEC int SDLCALL SDL_WM_IconifyWindow(void);
 extern DECLSPEC int SDLCALL SDL_WM_ToggleFullScreen(SDL_Surface * surface);