Change free and surface_destroy order

This commit is contained in:
Ceyhun Alp 2020-11-24 23:06:51 +00:00
parent 5f11c36f10
commit 8c6d1628ed

View file

@ -31,9 +31,9 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
cairo_tag_begin(cr, buf, NULL);
cairo_tag_end(cr, buf);
free(buf);
cairo_destroy(cr);
cairo_surface_destroy(surface);
free(buf);
fuzzer_release_tmpfile(tmpfile);
return 0;
}