DirectFB: use SDL_malloc

main
Sylvain 2021-11-22 16:37:19 +01:00 committed by Sam Lantinga
parent 8fb19d212e
commit 19bf36db15
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ DirectFB_CreateShaper(SDL_Window* window) {
SDL_ShapeData* data;
int resized_properly;
result = malloc(sizeof(SDL_WindowShaper));
result = SDL_malloc(sizeof(SDL_WindowShaper));
result->window = window;
result->mode.mode = ShapeModeDefault;
result->mode.parameters.binarizationCutoff = 1;