forked from mia/Aegisub
assdraw: fix memory leak
Originally committed to SVN as r6851.
This commit is contained in:
parent
40a2bae771
commit
decc47a568
1 changed files with 3 additions and 1 deletions
|
@ -236,7 +236,9 @@ void ASSDrawCanvas::SetDrawMode( MODE mode )
|
|||
ConstructPathsAndCurves(mtx, rm, rb, rc);
|
||||
rasterizer.reset();
|
||||
rasterizer.add_path(*rc);
|
||||
delete rm, rb, rc;
|
||||
delete rm;
|
||||
delete rb;
|
||||
delete rc;
|
||||
int minx = rasterizer.min_x(), miny = rasterizer.min_y();
|
||||
int maxx = rasterizer.max_x(), maxy = rasterizer.max_y();
|
||||
|
||||
|
|
Loading…
Reference in a new issue