From 19bf36db155071422db256c8960aac5710e936d3 Mon Sep 17 00:00:00 2001
From: Sylvain <[EMAIL REDACTED]>
Date: Mon, 22 Nov 2021 16:37:19 +0100
Subject: [PATCH] DirectFB: use SDL_malloc
---
src/video/directfb/SDL_DirectFB_shape.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/video/directfb/SDL_DirectFB_shape.c b/src/video/directfb/SDL_DirectFB_shape.c
index c9480944451..5323390bea8 100644
--- a/src/video/directfb/SDL_DirectFB_shape.c
+++ b/src/video/directfb/SDL_DirectFB_shape.c
@@ -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;