[totem] browser-plugin: Use g_list_free_full()
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] browser-plugin: Use g_list_free_full()
- Date: Mon, 18 Mar 2013 18:19:19 +0000 (UTC)
commit 298c758e916cac260db40c70e742439ae6772492
Author: Bastien Nocera <hadess hadess net>
Date: Mon Mar 18 16:27:37 2013 +0100
browser-plugin: Use g_list_free_full()
browser-plugin/totem-plugin-viewer.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/browser-plugin/totem-plugin-viewer.c b/browser-plugin/totem-plugin-viewer.c
index 9ea7361..a9b392e 100644
--- a/browser-plugin/totem-plugin-viewer.c
+++ b/browser-plugin/totem-plugin-viewer.c
@@ -696,8 +696,7 @@ totem_embedded_clear_playlist (TotemEmbedded *emb, GError *error)
{
g_message ("totem_embedded_clear_playlist");
- g_list_foreach (emb->playlist, (GFunc) totem_pl_item_free, NULL);
- g_list_free (emb->playlist);
+ g_list_free_full (emb->playlist, (GDestroyNotify) totem_pl_item_free);
emb->playlist = NULL;
emb->current = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]