[anjuta] sourceview: fix massive memory leak in sourceview-cell
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] sourceview: fix massive memory leak in sourceview-cell
- Date: Sun, 7 Mar 2010 20:46:14 +0000 (UTC)
commit 78c757f8c3aaf0d0fc1c74986e6c9d6179c01f4c
Author: Johannes Schmid <jhs gnome org>
Date: Sun Mar 7 21:45:44 2010 +0100
sourceview: fix massive memory leak in sourceview-cell
plugins/sourceview/sourceview-cell.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plugins/sourceview/sourceview-cell.c b/plugins/sourceview/sourceview-cell.c
index ab7dcfb..588ede9 100644
--- a/plugins/sourceview/sourceview-cell.c
+++ b/plugins/sourceview/sourceview-cell.c
@@ -69,7 +69,8 @@ sourceview_cell_finalize(GObject *object)
{
SourceviewCell *cobj;
cobj = SOURCEVIEW_CELL(object);
-
+
+ gtk_text_buffer_delete_mark (cobj->priv->buffer, cobj->priv->mark);
g_slice_free(SourceviewCellPrivate, cobj->priv);
G_OBJECT_CLASS(sourceview_cell_parent_class)->finalize(object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]