[gedit] Do not leak the encoding settings.
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Do not leak the encoding settings.
- Date: Sun, 23 Jan 2011 22:22:24 +0000 (UTC)
commit b34b146db5f709fc71fa98f34b2fd70c25aad5e8
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Sun Jan 23 23:23:01 2011 +0100
Do not leak the encoding settings.
gedit/gedit-encodings-combo-box.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gedit/gedit-encodings-combo-box.c b/gedit/gedit-encodings-combo-box.c
index 45b016c..abe7a5e 100644
--- a/gedit/gedit-encodings-combo-box.c
+++ b/gedit/gedit-encodings-combo-box.c
@@ -132,6 +132,12 @@ gedit_encodings_combo_box_dispose (GObject *object)
combo->priv->store = NULL;
}
+ if (combo->priv->enc_settings != NULL)
+ {
+ g_object_unref (combo->priv->enc_settings);
+ combo->priv->enc_settings = NULL;
+ }
+
G_OBJECT_CLASS (gedit_encodings_combo_box_parent_class)->dispose (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]