summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cairo/cdcairodbuf.c1
-rw-r--r--src/cairo/cdcairoimg.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/cairo/cdcairodbuf.c b/src/cairo/cdcairodbuf.c
index 0322191..9c00863 100644
--- a/src/cairo/cdcairodbuf.c
+++ b/src/cairo/cdcairodbuf.c
@@ -13,6 +13,7 @@
static void cdkillcanvas (cdCtxCanvas* ctxcanvas)
{
cdKillImage(ctxcanvas->image_dbuffer);
+ ctxcanvas->cr = NULL; /* avoid to destroy it twice */
cdcairoKillCanvas(ctxcanvas);
}
diff --git a/src/cairo/cdcairoimg.c b/src/cairo/cdcairoimg.c
index 77bbda8..7311f20 100644
--- a/src/cairo/cdcairoimg.c
+++ b/src/cairo/cdcairoimg.c
@@ -12,6 +12,7 @@
static void cdkillcanvas(cdCtxCanvas* ctxcanvas)
{
+ ctxcanvas->cr = NULL; /* avoid to destroy it twice */
cdcairoKillCanvas(ctxcanvas);
}