File tree Expand file tree Collapse file tree 4 files changed +8
-1
lines changed Expand file tree Collapse file tree 4 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,11 @@ project adheres to [Semantic Versioning](http://semver.org/).
1212### Fixed
1313* fix: reject loadImage when src is null or invalid
1414
15+ 3.1.2
16+ ==================
17+ ### Fixed
18+ * Fix crash when setting width/height on PDF, SVG canvas (#2520 )
19+
15203.1.1
1621==================
1722### Fixed
Original file line number Diff line number Diff line change 11{
22 "name" : " canvas" ,
33 "description" : " Canvas graphics API backed by Cairo" ,
4- "version" : " 3.1.1 " ,
4+ "version" : " 3.1.2 " ,
55 "author" :
" TJ Holowaychuk <[email protected] >" ,
66 "main" : " index.js" ,
77 "browser" : " browser.js" ,
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ cairo_surface_t* PdfBackend::ensureSurface() {
2222
2323void PdfBackend::destroySurface () {
2424 if (surface) {
25+ cairo_surface_finish (surface);
2526 cairo_surface_destroy (surface);
2627 surface = nullptr ;
2728 assert (_closure);
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ cairo_surface_t* SvgBackend::ensureSurface() {
2626
2727void SvgBackend::destroySurface () {
2828 if (surface) {
29+ cairo_surface_finish (surface);
2930 cairo_surface_destroy (surface);
3031 surface = nullptr ;
3132 assert (_closure);
You can’t perform that action at this time.
0 commit comments