[gnome-commander] Only unref gnomeCmdFile->info if it was set before
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Only unref gnomeCmdFile->info if it was set before
- Date: Sun, 20 Jun 2021 21:58:00 +0000 (UTC)
commit bf499d129c463bf7a12b7261ac81a71cf2687336
Author: Uwe Scholz <u scholz83 gmx de>
Date: Tue Jun 15 23:49:23 2021 +0200
Only unref gnomeCmdFile->info if it was set before
src/gnome-cmd-file.cc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/gnome-cmd-file.cc b/src/gnome-cmd-file.cc
index 2051ee286..885cba456 100644
--- a/src/gnome-cmd-file.cc
+++ b/src/gnome-cmd-file.cc
@@ -108,7 +108,8 @@ static void gnome_cmd_file_finalize (GObject *object)
DEBUG ('f', "file destroying 0x%p %s\n", f, g_file_info_get_display_name(f->gFileInfo));
g_free (f->collate_key);
- gnome_vfs_file_info_unref (f->info);
+ if (f->info)
+ gnome_vfs_file_info_unref (f->info);
g_object_unref(f->gFileInfo);
if (f->priv->dir_handle)
handle_unref (f->priv->dir_handle);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]