[anjuta] file-manager: Don't unref NULL file_info on vcs update
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] file-manager: Don't unref NULL file_info on vcs update
- Date: Thu, 2 Jun 2011 11:00:26 +0000 (UTC)
commit d225cb124c544016a6dc444b7558e496ab451e36
Author: Johannes Schmid <jhs gnome org>
Date: Thu Jun 2 12:59:59 2011 +0200
file-manager: Don't unref NULL file_info on vcs update
plugins/file-manager/file-model.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/plugins/file-manager/file-model.c b/plugins/file-manager/file-model.c
index 006e8b3..1f7d1f7 100644
--- a/plugins/file-manager/file-model.c
+++ b/plugins/file-manager/file-model.c
@@ -404,6 +404,12 @@ file_model_update_file_foreach_func (GtkTreeModel* model,
"standard::*",
G_FILE_QUERY_INFO_NONE,
NULL, NULL);
+
+ if (!info)
+ {
+ g_object_unref (file);
+ return FALSE;
+ }
file_model_update_file (FILE_MODEL (model),
iter,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]