]> granicus.if.org Git - libass/commitdiff
test: free image
authorGrigori Goronzy <greg@blackbox>
Thu, 14 Jul 2011 22:52:21 +0000 (00:52 +0200)
committerGrigori Goronzy <greg@blackbox>
Fri, 15 Jul 2011 13:00:14 +0000 (15:00 +0200)
Reduces the noise in valgrind output.

test/test.c

index 432a44fbaa9bba3fe8f61e1a86d148f1ae07dfbf..d6cd9b86727043cd112f670f66112b5fb5435701 100644 (file)
@@ -194,6 +194,8 @@ int main(int argc, char *argv[])
     ass_library_done(ass_library);
 
     write_png(imgfile, frame);
+    free(frame->buffer);
+    free(frame);
 
     return 0;
 }