aboutsummaryrefslogtreecommitdiff
path: root/src/sc_editor.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2015-02-24 11:44:30 +0100
committerThomas White <taw@bitwiz.org.uk>2015-02-24 11:44:30 +0100
commit11cf54695fbe47d96325392a4b1323bc16da7032 (patch)
treef507c1dbc96f0b84599cd567fbb8a7dd1d98715f /src/sc_editor.c
parent24e5163fd377e860a62595d01b187be8df1d7a7d (diff)
Fix a load of memory leaks
Diffstat (limited to 'src/sc_editor.c')
-rw-r--r--src/sc_editor.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/sc_editor.c b/src/sc_editor.c
index d261e7c..f2bdbf5 100644
--- a/src/sc_editor.c
+++ b/src/sc_editor.c
@@ -244,9 +244,11 @@ void advance_cursor(SCEditor *e)
}
-static gint destroy_sig(GtkWidget *window, SCEditor *sceditor)
+static gint destroy_sig(GtkWidget *window, SCEditor *e)
{
- /* FIXME: free stuff */
+ if ( e->surface != NULL ) {
+ cairo_surface_destroy(e->surface);
+ }
return 0;
}