assdraw: fix memory leak

Originally committed to SVN as r6851.
This commit is contained in:
Thomas Goyne 2012-05-24 01:55:46 +00:00
parent 40a2bae771
commit decc47a568
1 changed files with 3 additions and 1 deletions

View File

@ -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();