mirror of https://github.com/odrling/Aegisub
assdraw: fix memory leak
Originally committed to SVN as r6851.
This commit is contained in:
parent
40a2bae771
commit
decc47a568
|
@ -236,7 +236,9 @@ void ASSDrawCanvas::SetDrawMode( MODE mode )
|
||||||
ConstructPathsAndCurves(mtx, rm, rb, rc);
|
ConstructPathsAndCurves(mtx, rm, rb, rc);
|
||||||
rasterizer.reset();
|
rasterizer.reset();
|
||||||
rasterizer.add_path(*rc);
|
rasterizer.add_path(*rc);
|
||||||
delete rm, rb, rc;
|
delete rm;
|
||||||
|
delete rb;
|
||||||
|
delete rc;
|
||||||
int minx = rasterizer.min_x(), miny = rasterizer.min_y();
|
int minx = rasterizer.min_x(), miny = rasterizer.min_y();
|
||||||
int maxx = rasterizer.max_x(), maxy = rasterizer.max_y();
|
int maxx = rasterizer.max_x(), maxy = rasterizer.max_y();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue