From 0fdcf7a96b408ef4d072720d2d5e33313cedc879 Mon Sep 17 00:00:00 2001
From: Cyrille Bagard <nocbos@gmail.com>
Date: Tue, 18 Oct 2016 00:35:47 +0200
Subject: Fixed a huge memory leak when computing shadows.

---
 ChangeLog                 | 5 +++++
 src/gtkext/gtkgraphview.c | 2 ++
 2 files changed, 7 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 32646d2..c3c3025 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+16-10-18  Cyrille Bagard <nocbos@gmail.com>
+
+	* src/gtkext/gtkgraphview.c:
+	Fix a huge memory leak when computing shadows.
+
 16-10-17  Cyrille Bagard <nocbos@gmail.com>
 
 	* src/gtkext/gtkbufferview.c:
diff --git a/src/gtkext/gtkgraphview.c b/src/gtkext/gtkgraphview.c
index 5b32f69..1666488 100644
--- a/src/gtkext/gtkgraphview.c
+++ b/src/gtkext/gtkgraphview.c
@@ -403,6 +403,8 @@ static gboolean gtk_graph_view_draw(GtkWidget *widget, cairo_t *cr, GtkGraphView
             cairo_mask(cr, pattern);
             cairo_fill(cr);
 
+            cairo_pattern_destroy(pattern);
+
         }
 
     }
-- 
cgit v0.11.2-87-g4458