Fix stdlib usage

This commit is contained in:
Anonymous Maarten
2024-09-25 21:56:16 +02:00
committed by Anonymous Maarten
parent 80da805688
commit 76f28ea120
4 changed files with 9 additions and 9 deletions

View File

@@ -300,7 +300,7 @@
". [SDL] In performDragOperation, desiredType '%s', "
"Submitting DropText as (%lu) '%s'\n",
[[desiredType description] UTF8String],
strlen(token), token);
SDL_strlen(token), token);
if (!SDL_SendDropText(sdlwindow, token)) {
SDL_free(buffer);
return NO;

View File

@@ -255,7 +255,7 @@ bool HAIKU_GetDisplayModes(SDL_VideoDevice *_this, SDL_VideoDisplay *display)
SDL_AddFullscreenDisplayMode(display, &mode);
}
}
free(bmodes); // This should not be SDL_free()
free(bmodes); // This should NOT be SDL_free()
return true;
}
@@ -289,7 +289,7 @@ bool HAIKU_SetDisplayMode(SDL_VideoDevice *_this, SDL_VideoDisplay *display, SDL
return SDL_SetError("Bad video mode");
}
free(bmode_list); // This should not be SDL_free()
free(bmode_list); // This should NOT be SDL_free()
#ifdef SDL_VIDEO_OPENGL
/* FIXME: Is there some way to reboot the OpenGL context? This doesn't