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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user