[Xfce4-commits] [apps/xfdashboard] 07/09: Silence compiler warning at libxfdashboard/stage.c
noreply at xfce.org
noreply at xfce.org
Wed Aug 21 15:20:43 CEST 2019
This is an automated email from the git hooks/post-receive script.
n o m a d p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository apps/xfdashboard.
commit 063a27ac17f08449c548432f2d1660895d400604
Author: Stephan Haller <nomad at froevel.de>
Date: Wed Aug 21 14:37:12 2019 +0200
Silence compiler warning at libxfdashboard/stage.c
---
libxfdashboard/stage.c | 18 ++++++------------
1 file changed, 6 insertions(+), 12 deletions(-)
diff --git a/libxfdashboard/stage.c b/libxfdashboard/stage.c
index 504d945..cbca412 100644
--- a/libxfdashboard/stage.c
+++ b/libxfdashboard/stage.c
@@ -951,8 +951,7 @@ static void _xfdashboard_stage_on_application_theme_changed(XfdashboardStage *se
/* Release allocated resources */
_xfdashboard_stage_theme_interface_data_free(interface);
- g_list_foreach(interfaces, (GFunc)_xfdashboard_stage_theme_interface_data_free, NULL);
- g_list_free(interfaces);
+ g_list_free_full(interfaces, (GDestroyNotify)_xfdashboard_stage_theme_interface_data_free);
return;
}
@@ -966,8 +965,7 @@ static void _xfdashboard_stage_on_application_theme_changed(XfdashboardStage *se
/* Release allocated resources */
_xfdashboard_stage_theme_interface_data_free(interface);
- g_list_foreach(interfaces, (GFunc)_xfdashboard_stage_theme_interface_data_free, NULL);
- g_list_free(interfaces);
+ g_list_free_full(interfaces, (GDestroyNotify)_xfdashboard_stage_theme_interface_data_free);
return;
}
@@ -997,8 +995,7 @@ static void _xfdashboard_stage_on_application_theme_changed(XfdashboardStage *se
/* Release allocated resources */
_xfdashboard_stage_theme_interface_data_free(interface);
- g_list_foreach(interfaces, (GFunc)_xfdashboard_stage_theme_interface_data_free, NULL);
- g_list_free(interfaces);
+ g_list_free_full(interfaces, (GDestroyNotify)_xfdashboard_stage_theme_interface_data_free);
return;
}
@@ -1031,8 +1028,7 @@ static void _xfdashboard_stage_on_application_theme_changed(XfdashboardStage *se
/* Release allocated resources */
_xfdashboard_stage_theme_interface_data_free(interface);
- g_list_foreach(interfaces, (GFunc)_xfdashboard_stage_theme_interface_data_free, NULL);
- g_list_free(interfaces);
+ g_list_free_full(interfaces, (GDestroyNotify)_xfdashboard_stage_theme_interface_data_free);
return;
}
@@ -1046,8 +1042,7 @@ static void _xfdashboard_stage_on_application_theme_changed(XfdashboardStage *se
/* Release allocated resources */
_xfdashboard_stage_theme_interface_data_free(interface);
- g_list_foreach(interfaces, (GFunc)_xfdashboard_stage_theme_interface_data_free, NULL);
- g_list_free(interfaces);
+ g_list_free_full(interfaces, (GDestroyNotify)_xfdashboard_stage_theme_interface_data_free);
return;
}
@@ -1344,8 +1339,7 @@ static void _xfdashboard_stage_on_application_theme_changed(XfdashboardStage *se
}
/* Release allocated resources */
- g_list_foreach(interfaces, (GFunc)_xfdashboard_stage_theme_interface_data_free, NULL);
- g_list_free(interfaces);
+ g_list_free_full(interfaces, (GDestroyNotify)_xfdashboard_stage_theme_interface_data_free);
/* Set focus */
_xfdashboard_stage_set_focus(self);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list