summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2005-07-14 17:55:58 +0000
committerCarl Worth <cworth@cworth.org>2005-07-14 17:55:58 +0000
commit3e05319bf8584d88fc34825d79c138f0e9f8a297 (patch)
treeed87199860396507cce03c0d79b0b7efbae4b39b
parent6df1baa395ad11c1a22dd5279d6281b3ee149e94 (diff)
Fix leak of surface.
-rw-r--r--ChangeLog4
-rw-r--r--test/surface-finish-twice.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index a84397d95..8640b786d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2005-07-14 Carl Worth <cworth@cworth.org>
+ * test/surface-finish-twice.c: (draw): Fix leak of surface.
+
+2005-07-14 Carl Worth <cworth@cworth.org>
+
* src/cairo-pdf-surface.c: (_cairo_pdf_surface_finish),
(_cairo_pdf_document_finish): Call _cairo_array_fini on the
several array objects to patch memory leaks.
diff --git a/test/surface-finish-twice.c b/test/surface-finish-twice.c
index 3f24e391c..68d49c928 100644
--- a/test/surface-finish-twice.c
+++ b/test/surface-finish-twice.c
@@ -63,6 +63,8 @@ draw (cairo_t *cr, int width, int height)
if (status != CAIRO_STATUS_SURFACE_FINISHED)
return CAIRO_TEST_FAILURE;
+ cairo_surface_destroy (surface);
+
return CAIRO_TEST_SUCCESS;
}