[anjuta] file-manager: Remove weak pointer when plugin is finalized
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] file-manager: Remove weak pointer when plugin is finalized
- Date: Sat, 22 Feb 2014 20:59:53 +0000 (UTC)
commit cba6bf42b3ab153a70573a34b0c2d6d37704fc21
Author: Sébastien Granjoux <seb sfo free fr>
Date: Mon Feb 10 22:26:23 2014 +0100
file-manager: Remove weak pointer when plugin is finalized
plugins/file-manager/file-model.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plugins/file-manager/file-model.c b/plugins/file-manager/file-model.c
index cbcfcd6..81265a8 100644
--- a/plugins/file-manager/file-model.c
+++ b/plugins/file-manager/file-model.c
@@ -623,6 +623,8 @@ file_model_finalize (GObject *object)
FileModelPrivate* priv = FILE_MODEL_GET_PRIVATE(model);
g_clear_object (&priv->base_path);
+ if (priv->ivcs)
+ g_object_remove_weak_pointer (G_OBJECT (priv->ivcs), (void**)&priv->ivcs);
G_OBJECT_CLASS (file_model_parent_class)->finalize (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]