From Jason Beverage, "Attached is a patch to the SVG plugin to use cairo_surface_destroy

instead of free.  This was causing a crash on Windows.
"
This commit is contained in:
Robert Osfield
2012-02-06 12:38:11 +00:00
parent 38b17bc5fa
commit d21280785c

View File

@@ -102,7 +102,7 @@ class ReaderWriterSVG : public osgDB::ReaderWriter
rsvg_handle_render_cairo(handle, cr);
cairo_destroy(cr);
free(cairo_surface);
cairo_surface_destroy(cairo_surface);
image->flipVertical();
return image;