aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ephy-snapshot-service.c
diff options
context:
space:
mode:
authorCarlos Garcia Campos <cgarcia@igalia.com>2012-09-03 18:50:36 +0800
committerCarlos Garcia Campos <carlosgc@gnome.org>2012-09-03 18:51:12 +0800
commit9ecd70bae96a0c08bca380c97bdf0b2b9e724d95 (patch)
tree77d04fc28f25bc42bf346e3a604faa53e9f896d0 /lib/ephy-snapshot-service.c
parentb0c5be1011f5fed19c6979b63e9d12475fd381d3 (diff)
downloadgsoc2013-epiphany-9ecd70bae96a0c08bca380c97bdf0b2b9e724d95.tar
gsoc2013-epiphany-9ecd70bae96a0c08bca380c97bdf0b2b9e724d95.tar.gz
gsoc2013-epiphany-9ecd70bae96a0c08bca380c97bdf0b2b9e724d95.tar.bz2
gsoc2013-epiphany-9ecd70bae96a0c08bca380c97bdf0b2b9e724d95.tar.lz
gsoc2013-epiphany-9ecd70bae96a0c08bca380c97bdf0b2b9e724d95.tar.xz
gsoc2013-epiphany-9ecd70bae96a0c08bca380c97bdf0b2b9e724d95.tar.zst
gsoc2013-epiphany-9ecd70bae96a0c08bca380c97bdf0b2b9e724d95.zip
ephy-snapshot-service: Fix memory leak
Diffstat (limited to 'lib/ephy-snapshot-service.c')
-rw-r--r--lib/ephy-snapshot-service.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ephy-snapshot-service.c b/lib/ephy-snapshot-service.c
index 4b1e4e4db..04b559035 100644
--- a/lib/ephy-snapshot-service.c
+++ b/lib/ephy-snapshot-service.c
@@ -194,6 +194,7 @@ webview_retrieve_snapshot (SnapshotOp *op)
}
op->snapshot = ephy_snapshot_service_crop_snapshot (surface);
+ cairo_surface_destroy (surface);
g_io_scheduler_push_job ((GIOSchedulerJobFunc)io_scheduler_save_thumbnail,
op, NULL, G_PRIORITY_LOW, NULL);