[gnome-keyring] gcr: Fix memory leak in GcrSelector dispose
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-keyring] gcr: Fix memory leak in GcrSelector dispose
- Date: Tue, 19 Apr 2011 07:35:09 +0000 (UTC)
commit 008c81f0951a7e17a7113af8bd61cdf95d29eb29
Author: Stef Walter <stefw collabora co uk>
Date: Tue Apr 19 09:26:50 2011 +0200
gcr: Fix memory leak in GcrSelector dispose
gcr/gcr-selector.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gcr/gcr-selector.c b/gcr/gcr-selector.c
index 45be657..4d814df 100644
--- a/gcr/gcr-selector.c
+++ b/gcr/gcr-selector.c
@@ -378,6 +378,10 @@ gcr_selector_dispose (GObject *obj)
g_object_unref (self->pv->collection);
self->pv->collection = NULL;
+ if (self->pv->sort)
+ g_object_unref (self->pv->sort);
+ self->pv->sort = NULL;
+
G_OBJECT_CLASS (gcr_selector_parent_class)->dispose (obj);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]