From 8a9ba3cdfb661d407015613a626d943efe9a979c Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 14 Sep 2001 23:03:43 +0000 Subject: Use g_datalist_set_data_full so that the data will be free'd when we clear 2001-09-14 Jeffrey Stedfast * camel-url.c (camel_url_set_param): Use g_datalist_set_data_full so that the data will be free'd when we clear the list. svn path=/trunk/; revision=12838 --- camel/camel-url.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'camel/camel-url.c') diff --git a/camel/camel-url.c b/camel/camel-url.c index 4290b4c813..7c3bd0eab4 100644 --- a/camel/camel-url.c +++ b/camel/camel-url.c @@ -432,7 +432,7 @@ camel_url_set_port (CamelURL *url, int port) void camel_url_set_param (CamelURL *url, const char *name, const char *value) { - g_datalist_set_data (&url->params, name, value ? g_strdup (value) : NULL); + g_datalist_set_data_full (&url->params, name, value ? g_strdup (value) : NULL, g_free); } const char * -- cgit