Skip to content
Snippets Groups Projects
Commit 233c1bf4 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Fix newly-introduced memory leak...

I was going to start keeping the old rect around again, but that
idea didn't pan out.  This massive memory leak is what I get for
not doing more commits while tuning.
parent 4c473e02
No related branches found
No related tags found
No related merge requests found
...@@ -493,10 +493,9 @@ local_draw_rect(struct rectlist *rect) ...@@ -493,10 +493,9 @@ local_draw_rect(struct rectlist *rect)
// Scale... // Scale...
source = do_scale(rect, x_cvstat.scaling, x_cvstat.scaling, x_cvstat.aspect_width, x_cvstat.aspect_height); source = do_scale(rect, x_cvstat.scaling, x_cvstat.scaling, x_cvstat.aspect_width, x_cvstat.aspect_height);
if (source == NULL) { bitmap_drv_free_rect(rect);
bitmap_drv_free_rect(rect); if (source == NULL)
return; return;
}
cleft = source->w; cleft = source->w;
ctop = source->h; ctop = source->h;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment