summaryrefslogtreecommitdiff
path: root/src/cairo
diff options
context:
space:
mode:
authorscuri <scuri>2011-05-24 20:20:15 +0000
committerscuri <scuri>2011-05-24 20:20:15 +0000
commit613e1fe61d22cf7093224f31be8db8802fde7047 (patch)
tree51c81351e990869a09788cca64fc45b97bfc2003 /src/cairo
parent064e6b53faec08a67075dd0f97303f5365d4e79b (diff)
Fixed: cdCanvasKillCanvas for the CD_IMAGE and CD_DBUFFER drivers of the Cairo base driver.
Diffstat (limited to 'src/cairo')
-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);
}