[telegnome] * src/gui.c (load_channels_from_config, cb_quit): Cast channel_free to GDestroyNotify.
- From: Colin Watson <cjwatson src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [telegnome] * src/gui.c (load_channels_from_config, cb_quit): Cast channel_free to GDestroyNotify.
- Date: Fri, 1 Feb 2013 01:13:20 +0000 (UTC)
commit 11b5764125cdf81ea56b0b494ca88930c8bc6675
Author: Colin Watson <cjwatson debian org>
Date: Fri Feb 1 01:13:03 2013 +0000
* src/gui.c (load_channels_from_config, cb_quit): Cast channel_free
to GDestroyNotify.
ChangeLog | 5 +++++
src/gui.c | 4 ++--
2 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 1e5b71a..262e3d7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2013-02-01 Colin Watson <cjwatson debian org>
+ * src/gui.c (load_channels_from_config, cb_quit): Cast channel_free
+ to GDestroyNotify.
+
+2013-02-01 Colin Watson <cjwatson debian org>
+
Use more modern memory-freeing functions.
* src/gui.c (load_channels_from_config, cb_quit): Use
diff --git a/src/gui.c b/src/gui.c
index 81316d9..1fd0dc9 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -331,7 +331,7 @@ load_channels_from_config()
Channel *channel;
if (gui.channels != NULL) {
- g_slist_free_full(gui.channels, channel_free);
+ g_slist_free_full(gui.channels, (GDestroyNotify)channel_free);
gui.channels = NULL;
}
@@ -506,7 +506,7 @@ cb_quit (GtkWidget* widget, gpointer data)
/* free the channels */
if (gui.channels != NULL) {
- g_slist_free_full(gui.channels, channel_free);
+ g_slist_free_full(gui.channels, (GDestroyNotify)channel_free);
gui.channels = NULL;
}
tele_view_free(currentview);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]