[gnome-commander] Only unref a GFile instance if it is not null
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Only unref a GFile instance if it is not null
- Date: Thu, 6 Jan 2022 22:27:54 +0000 (UTC)
commit 2a8aa1dde8077b47161248408c9a740a3ab7112d
Author: Uwe Scholz <u scholz83 gmx de>
Date: Thu Jan 6 23:16:04 2022 +0100
Only unref a GFile instance if it is not null
src/gnome-cmd-con.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/gnome-cmd-con.cc b/src/gnome-cmd-con.cc
index 0f3cf315..40b5da61 100644
--- a/src/gnome-cmd-con.cc
+++ b/src/gnome-cmd-con.cc
@@ -500,7 +500,7 @@ gboolean gnome_cmd_con_get_path_target_type (GnomeCmdCon *con, const gchar *path
if (!gFile || !g_file_query_exists(gFile, nullptr))
{
- if (!gFile)
+ if (gFile)
g_object_unref(gFile);
*gFileType = G_FILE_TYPE_UNKNOWN;
delete path;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]