[gedit] Unref the doc input stream on dispose
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Unref the doc input stream on dispose
- Date: Sun, 28 Feb 2010 22:34:55 +0000 (UTC)
commit 6e0d6d5a8d81dd02c3f8faa263197a40e2d3fed8
Author: Paolo Borelli <pborelli gnome org>
Date: Sun Feb 28 23:34:14 2010 +0100
Unref the doc input stream on dispose
gedit/gedit-gio-document-saver.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gedit/gedit-gio-document-saver.c b/gedit/gedit-gio-document-saver.c
index caf7186..7830c58 100644
--- a/gedit/gedit-gio-document-saver.c
+++ b/gedit/gedit-gio-document-saver.c
@@ -115,6 +115,12 @@ gedit_gio_document_saver_dispose (GObject *object)
priv->stream = NULL;
}
+ if (priv->input != NULL)
+ {
+ g_object_unref (priv->input);
+ priv->input = NULL;
+ }
+
G_OBJECT_CLASS (gedit_gio_document_saver_parent_class)->dispose (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]