[totem] backend: Simplify freeing the missing plugins list
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] backend: Simplify freeing the missing plugins list
- Date: Mon, 18 Mar 2013 18:19:24 +0000 (UTC)
commit 2ff736be42b2bb407b96526d59c0d4ace23a6f80
Author: Bastien Nocera <hadess hadess net>
Date: Mon Mar 18 16:28:50 2013 +0100
backend: Simplify freeing the missing plugins list
src/backend/bacon-video-widget.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/backend/bacon-video-widget.c b/src/backend/bacon-video-widget.c
index ba218af..7944b80 100644
--- a/src/backend/bacon-video-widget.c
+++ b/src/backend/bacon-video-widget.c
@@ -379,9 +379,7 @@ bvw_get_missing_plugins_descriptions (const GList * missing_plugins)
static void
bvw_clear_missing_plugins_messages (BaconVideoWidget * bvw)
{
- g_list_foreach (bvw->priv->missing_plugins,
- (GFunc) gst_mini_object_unref, NULL);
- g_list_free (bvw->priv->missing_plugins);
+ g_list_free_full (bvw->priv->missing_plugins, (GDestroyNotify) gst_mini_object_unref);
bvw->priv->missing_plugins = NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]