aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/dw-hdfsee.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/dw-hdfsee.c b/src/dw-hdfsee.c
index abf81e8f..61eab6a8 100644
--- a/src/dw-hdfsee.c
+++ b/src/dw-hdfsee.c
@@ -331,7 +331,6 @@ static gboolean displaywindow_expose(GtkWidget *da, GdkEventExpose *event,
static int write_png(const char *filename, DisplayWindow *dw)
{
cairo_status_t r;
- cairo_t *cr;
cairo_surface_t *surf;
surf = cairo_image_surface_create(CAIRO_FORMAT_ARGB32,
@@ -342,9 +341,6 @@ static int write_png(const char *filename, DisplayWindow *dw)
r = cairo_surface_write_to_png(surf, filename);
if ( r != CAIRO_STATUS_SUCCESS ) return 1;
- cairo_destroy(cr);
- cairo_surface_destroy(surf);
-
return 0;
}