[gnome-commander/gcmd-1-14] Do not unref GFile member of GnomeCmdDir received via gnome_cmd_dir_get_gfile
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander/gcmd-1-14] Do not unref GFile member of GnomeCmdDir received via gnome_cmd_dir_get_gfile
- Date: Sun, 3 Apr 2022 21:03:09 +0000 (UTC)
commit 56fccc6b88c31ab3d5cba7da9dbaa958e8e6e8ca
Author: Uwe Scholz <u scholz83 gmx de>
Date: Sun Apr 3 21:50:17 2022 +0200
Do not unref GFile member of GnomeCmdDir received via gnome_cmd_dir_get_gfile
src/dialogs/gnome-cmd-mkdir-dialog.cc | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/src/dialogs/gnome-cmd-mkdir-dialog.cc b/src/dialogs/gnome-cmd-mkdir-dialog.cc
index 6e54289f..4d22ee70 100644
--- a/src/dialogs/gnome-cmd-mkdir-dialog.cc
+++ b/src/dialogs/gnome-cmd-mkdir-dialog.cc
@@ -108,7 +108,6 @@ static void response_callback (GtkDialog *dialog, int response_id, GnomeCmdDir *
}
else
{
- auto dir_gFile = gnome_cmd_dir_get_gfile (dir);
gboolean new_dir_focused = FALSE;
// the list of gFiles's to be created
@@ -134,7 +133,7 @@ static void response_callback (GtkDialog *dialog, int response_id, GnomeCmdDir *
// focus the created directory (if possible)
auto parentGFile = g_file_get_parent (mkdir_gFile);
- if (g_file_equal (parentGFile, dir_gFile) && !new_dir_focused)
+ if (g_file_equal (parentGFile, gnome_cmd_dir_get_gfile (dir)) && !new_dir_focused)
{
string focus_filename = stringify (g_file_get_basename (mkdir_gFile));
string mkdir_uri_str = stringify (g_file_get_uri (mkdir_gFile));
@@ -150,7 +149,6 @@ static void response_callback (GtkDialog *dialog, int response_id, GnomeCmdDir *
g_object_unref ((GFile *) i->data);
g_slist_free (gFileList);
- g_object_unref (dir_gFile);
}
}
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]