[genius: 1/2] * src/genius-readline-helper.c: fix warning by using the right list free function
- From: Jiri (George) Lebl <jirka src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [genius: 1/2] * src/genius-readline-helper.c: fix warning by using the right list free function
- Date: Wed, 16 Dec 2020 21:53:56 +0000 (UTC)
commit 40b13d6f68b15e46e791e9269a2aeb109dc829a6
Author: Jiri (George) Lebl <jiri lebl gmail com>
Date: Wed Dec 16 13:53:35 2020 -0800
* src/genius-readline-helper.c: fix warning by using the right list
free function
ChangeLog | 5 +++++
src/genius-readline-helper.c | 6 ++----
2 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 65ee050f..22b34893 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Dec 16 13:53:33 2020 Jiri (George) Lebl <jirka 5z com>
+
+ * src/genius-readline-helper.c: fix warning by using the right list
+ free function
+
Wed Dec 16 11:52:11 2020 Jiri (George) Lebl <jirka 5z com>
* gtkextra/*.c: fix/ignore all the compiler warnings I can find
diff --git a/src/genius-readline-helper.c b/src/genius-readline-helper.c
index 7b3ce5f9..be5c03de 100644
--- a/src/genius-readline-helper.c
+++ b/src/genius-readline-helper.c
@@ -191,8 +191,7 @@ main(int argc, char *argv[])
int i;
GQueue queue = G_QUEUE_INIT;
if(plugins) {
- g_list_foreach(plugins,(GFunc)g_free,NULL);
- g_list_free(plugins);
+ g_list_free_full (plugins, g_free);
plugins = NULL;
}
for(i=0;i<count;i++) {
@@ -208,8 +207,7 @@ main(int argc, char *argv[])
int i;
GQueue queue = G_QUEUE_INIT;
if(functions) {
- g_list_foreach(functions,(GFunc)g_free,NULL);
- g_list_free(functions);
+ g_list_free_full (functions, g_free);
functions = NULL;
}
for(i=0;i<count;i++) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]