aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-09-15 07:03:43 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-09-15 07:03:43 +0800
commit8a9ba3cdfb661d407015613a626d943efe9a979c (patch)
tree855afc6817c96e9aa8de9ee3f6a70616ea64c8eb
parent52f52c4fe1fa7fa90608d68425e443b0975fe1fe (diff)
downloadgsoc2013-evolution-8a9ba3cdfb661d407015613a626d943efe9a979c.tar.gz
gsoc2013-evolution-8a9ba3cdfb661d407015613a626d943efe9a979c.tar.zst
gsoc2013-evolution-8a9ba3cdfb661d407015613a626d943efe9a979c.zip
Use g_datalist_set_data_full so that the data will be free'd when we clear
2001-09-14 Jeffrey Stedfast <fejj@ximian.com> * 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
-rw-r--r--camel/ChangeLog5
-rw-r--r--camel/camel-store.h6
-rw-r--r--camel/camel-url.c2
3 files changed, 9 insertions, 4 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index a81532d531..e2cc98dd49 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,8 @@
+2001-09-14 Jeffrey Stedfast <fejj@ximian.com>
+
+ * 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.
+
2001-09-14 Dan Winship <danw@ximian.com>
* camel-file-utils.c (camel_file_util_encode_string,
diff --git a/camel/camel-store.h b/camel/camel-store.h
index 9da6a6e84e..02ceb5747c 100644
--- a/camel/camel-store.h
+++ b/camel/camel-store.h
@@ -107,17 +107,17 @@ typedef struct {
const char *old_name,
const char *new_name,
CamelException *ex);
-
+
void (*sync) (CamelStore *store,
CamelException *ex);
-
+
CamelFolderInfo *(*get_folder_info) (CamelStore *store,
const char *top,
guint32 flags,
CamelException *ex);
void (*free_folder_info) (CamelStore *store,
CamelFolderInfo *fi);
-
+
gboolean (*folder_subscribed) (CamelStore *store,
const char *folder_name);
void (*subscribe_folder) (CamelStore *store,
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 *