diff options
author | Thomas White <taw@bitwiz.org.uk> | 2015-02-24 11:44:30 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2015-02-24 11:44:30 +0100 |
commit | 11cf54695fbe47d96325392a4b1323bc16da7032 (patch) | |
tree | f507c1dbc96f0b84599cd567fbb8a7dd1d98715f /src/sc_editor.c | |
parent | 24e5163fd377e860a62595d01b187be8df1d7a7d (diff) |
Fix a load of memory leaks
Diffstat (limited to 'src/sc_editor.c')
-rw-r--r-- | src/sc_editor.c | 6 |
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; } |