[gtksourceview] completion: ensure GList link is freed
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] completion: ensure GList link is freed
- Date: Tue, 19 Feb 2019 20:09:24 +0000 (UTC)
commit db2f898747533d79db5ad91bc484f5cc586b3d52
Author: Christian Hergert <chergert redhat com>
Date: Tue Feb 19 11:40:04 2019 -0800
completion: ensure GList link is freed
g_list_remove_link() does not free the GList element. It is not being
re-used, so it is safe to free it here using g_list_delete_link().
gtksourceview/gtksourcecompletion.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtksourceview/gtksourcecompletion.c b/gtksourceview/gtksourcecompletion.c
index f06f1277..c91f91e6 100644
--- a/gtksourceview/gtksourcecompletion.c
+++ b/gtksourceview/gtksourcecompletion.c
@@ -2953,7 +2953,7 @@ gtk_source_completion_remove_provider (GtkSourceCompletion *completion,
return FALSE;
}
- completion->priv->providers = g_list_remove_link (completion->priv->providers, item);
+ completion->priv->providers = g_list_delete_link (completion->priv->providers, item);
g_object_unref (provider);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]