[anjuta/gnome-3-0] 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/gnome-3-0] file-manager: Don't unref NULL file_info on vcs update
- Date: Fri, 10 Jun 2011 15:50:24 +0000 (UTC)
commit 7c89a7ef99a0762219603c3ec97f0e6286ece844
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]