[grilo-plugins] raitv: finalize method fixed.
- From: Juan A. Suarez Romero <jasuarez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] raitv: finalize method fixed.
- Date: Wed, 10 Apr 2013 17:02:17 +0000 (UTC)
commit 10cb4e74de35e2f689afb6e5e8d32cb92e6b1096
Author: Marek Chalupa <mchalupa redhat com>
Date: Wed Apr 10 16:38:48 2013 +0200
raitv: finalize method fixed.
In grl_raitv_source_finalize () on lines 282 and 287 were
raitv_[search|browse]_mappings unrefered like they were GObject, but
they are GLists.
g_object_unref () was therfore replaced by g_list_free_full () with
g_free (full free because list is made up of structs allocated by g_new
()).
https://bugzilla.gnome.org/show_bug.cgi?id=697724
src/raitv/grl-raitv.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/raitv/grl-raitv.c b/src/raitv/grl-raitv.c
index 6add57f..580606f 100644
--- a/src/raitv/grl-raitv.c
+++ b/src/raitv/grl-raitv.c
@@ -284,12 +284,12 @@ grl_raitv_source_finalize (GObject *object)
}
if (source->priv->raitv_search_mappings != NULL) {
- g_object_unref (source->priv->raitv_search_mappings);
+ g_list_free_full (source->priv->raitv_search_mappings, g_free);
source->priv->raitv_search_mappings = NULL;
}
if (source->priv->raitv_browse_mappings != NULL) {
- g_object_unref (source->priv->raitv_browse_mappings);
+ g_list_free_full (source->priv->raitv_browse_mappings, g_free);
source->priv->raitv_browse_mappings = NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]