[gnome-commander] Fix when doing a file rename: Unref the correct GFile instance
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Fix when doing a file rename: Unref the correct GFile instance
- Date: Sun, 3 Apr 2022 21:04:00 +0000 (UTC)
commit ffb1fc366b9ccca037c72d00f26fb8087dc90228
Author: Uwe Scholz <u scholz83 gmx de>
Date: Sun Apr 3 22:36:51 2022 +0200
Fix when doing a file rename: Unref the correct GFile instance
src/gnome-cmd-file.cc | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/gnome-cmd-file.cc b/src/gnome-cmd-file.cc
index fcb69434..97323eff 100644
--- a/src/gnome-cmd-file.cc
+++ b/src/gnome-cmd-file.cc
@@ -446,8 +446,9 @@ gboolean GnomeCmdFile::rename(const gchar *new_name, GError **error)
return FALSE;
}
- g_object_unref(this->gFile);
- this->gFile = newgFile;
+ g_object_unref(GNOME_CMD_FILE_BASE (this)->gFile);
+ GNOME_CMD_FILE_BASE (this)->gFile = newgFile;
+ this->gFile = GNOME_CMD_FILE_BASE (this)->gFile;
auto gFileInfoNew = g_file_query_info(gFile,
"*",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]