Memory leak fix in Realloc_brush()

This commit is contained in:
Thomas Bernard 2019-02-15 12:33:58 +01:00
parent c8e5656579
commit 84fbe26e8a
No known key found for this signature in database
GPG Key ID: 0FF11B67A5C0863C

View File

@ -762,7 +762,7 @@ byte Realloc_brush(word new_brush_width, word new_brush_height, byte *new_brush,
if (old_brush)
*old_brush = Brush_original_pixels;
else
free(old_brush);
free(Brush_original_pixels);
Brush_original_pixels = new_brush;
// Assign new brush
if (new_brush_remapped)