--- src/cairo-qt-surface.cpp.orig 2010-01-13 04:25:11.000000000 +0100 +++ src/cairo-qt-surface.cpp 2010-01-13 04:30:03.000000000 +0100 @@ -430,8 +430,6 @@ /* Only delete p if we created it */ if (qs->image || qs->pixmap) delete qs->p; - else - qs->p->restore(); if (qs->image_equiv) cairo_surface_destroy ((cairo_surface_t*) qs->image_equiv);