diff options
author | Grigori Goronzy <greg@blackbox> | 2009-07-24 09:59:47 +0200 |
---|---|---|
committer | Grigori Goronzy <greg@blackbox> | 2009-07-24 15:39:20 +0200 |
commit | 417a5b32da0d3b345299190ba3198cfed6f98275 (patch) | |
tree | dbbc0ca0d19864646e224ae4926a5c58cb8b4b04 | |
parent | cadecae81541e68ad96353c10a7cb6bacea32d04 (diff) | |
download | libass-417a5b32da0d3b345299190ba3198cfed6f98275.tar.bz2 libass-417a5b32da0d3b345299190ba3198cfed6f98275.tar.xz |
Test program: free track/renderer/library
In the test program, free the track, renderer and library properly.
This is useful for memory leak testing.
-rw-r--r-- | test/test.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test.c b/test/test.c index 6809986..ac4bfe6 100644 --- a/test/test.c +++ b/test/test.c @@ -175,6 +175,11 @@ int main(int argc, char *argv[]) ass_render_frame(ass_renderer, track, (int) (tm * 1000), NULL); image_t *frame = gen_image(frame_w, frame_h); blend(frame, img); + + ass_free_track(track); + ass_renderer_done(ass_renderer); + ass_library_done(ass_library); + write_png(imgfile, frame); return 0; |