From b5541bf37ca458c8bf7f1b66d850c014652c2455 Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Mon, 29 Jul 2013 18:48:11 -0700 Subject: [PATCH] Fix cairo region leak in clip_box(). --- src/fl_rect.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fl_rect.cxx b/src/fl_rect.cxx index 6058bcf..06b1514 100644 --- a/src/fl_rect.cxx +++ b/src/fl_rect.cxx @@ -729,6 +729,8 @@ int Fl_Graphics_Driver::clip_box(int x, int y, int w, int h, int& X, int& Y, int cairo_region_overlap_t o = cairo_region_contains_rectangle( r, &rect ); + cairo_region_destroy(t); + switch ( o ) { case CAIRO_REGION_OVERLAP_IN: