[gnome-commander] Free the error which is propagated to on_list_done function



commit e602a11f5fd2a02f5129e8109310c0cf954cf47a
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Tue Jun 1 23:28:34 2021 +0200

    Free the error which is propagated to on_list_done function

 src/gnome-cmd-dir.cc | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/gnome-cmd-dir.cc b/src/gnome-cmd-dir.cc
index 53fbaa422..d19e540ac 100644
--- a/src/gnome-cmd-dir.cc
+++ b/src/gnome-cmd-dir.cc
@@ -566,6 +566,7 @@ static void on_list_done (GnomeCmdDir *dir, GList *infolist, GError *error)
 
         DEBUG('l', "Emitting 'list-failed' signal\n");
         g_signal_emit (dir, signals[LIST_FAILED], 0, error->code);
+        g_error_free(error);
     }
 }
 


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