Browse Source

Conditionally destroy surface on ~Image()

v1.x
Tj Holowaychuk 14 years ago
parent
commit
07a736b509
  1. 2
      src/Image.cc

2
src/Image.cc

@ -150,7 +150,7 @@ Image::Image() {
*/
Image::~Image() {
cairo_surface_destroy(_surface);
if (_surface) cairo_surface_destroy(_surface);
}
/*

Loading…
Cancel
Save