diff options
author | Marek Chalupa <mchalupa@redhat.com> | 2013-04-10 16:38:48 +0200 |
---|---|---|
committer | Juan A. Suarez Romero <jasuarez@igalia.com> | 2013-04-10 17:56:35 +0100 |
commit | 10cb4e74de35e2f689afb6e5e8d32cb92e6b1096 (patch) | |
tree | fd0e51df7ab03620926fc2721ab2ba6d935bb616 | |
parent | 0b5b0aee7e13697faea4e6e9eb2475f595378a63 (diff) |
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
-rw-r--r-- | 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; } |