[gnome-commander] Unref GFile object instance when finalizing GnomeCmdFileBase instance



commit d8c1f08efbfc61cb5a6cb852270f2fd257c1a51b
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Fri Jan 1 21:53:13 2021 +0100

    Unref GFile object instance when finalizing GnomeCmdFileBase instance

 libgcmd/gnome-cmd-file-base.cc | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/libgcmd/gnome-cmd-file-base.cc b/libgcmd/gnome-cmd-file-base.cc
index 0df1f73c..101d996a 100644
--- a/libgcmd/gnome-cmd-file-base.cc
+++ b/libgcmd/gnome-cmd-file-base.cc
@@ -42,6 +42,8 @@ static void gnome_cmd_file_base_finalize (GObject *object)
     gnome_vfs_file_info_unref (self->gnomeVfsFileInfo);
     if (self->uri)
         gnome_vfs_uri_unref (self->uri);
+    if (self->gFile)
+        g_object_unref(self->gFile);
 
     G_OBJECT_CLASS (gnome_cmd_file_base_parent_class)->finalize (object);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]