diff --git a/client/SDL/SDL2/sdl_pointer.cpp b/client/SDL/SDL2/sdl_pointer.cpp index 5f00fdf33..3cc8bdbbb 100644 --- a/client/SDL/SDL2/sdl_pointer.cpp +++ b/client/SDL/SDL2/sdl_pointer.cpp @@ -61,6 +61,7 @@ static BOOL sdl_Pointer_New(rdpContext* context, rdpPointer* pointer) &context->gdi->palette)) { winpr_aligned_free(ptr->data); + ptr->data = nullptr; return FALSE; }