diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2001-06-30 07:42:14 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2001-06-30 07:42:14 +0800 |
commit | d55e49c51f3a45aa4fb3efe22e144bed70549f1b (patch) | |
tree | c431209adf93b966a3ebd847da7381a369176140 /e-util/e-util.c | |
parent | 15a4c0417ca76d02b02b6b77672558b6dd9294bd (diff) | |
download | gsoc2013-evolution-d55e49c51f3a45aa4fb3efe22e144bed70549f1b.tar gsoc2013-evolution-d55e49c51f3a45aa4fb3efe22e144bed70549f1b.tar.gz gsoc2013-evolution-d55e49c51f3a45aa4fb3efe22e144bed70549f1b.tar.bz2 gsoc2013-evolution-d55e49c51f3a45aa4fb3efe22e144bed70549f1b.tar.lz gsoc2013-evolution-d55e49c51f3a45aa4fb3efe22e144bed70549f1b.tar.xz gsoc2013-evolution-d55e49c51f3a45aa4fb3efe22e144bed70549f1b.tar.zst gsoc2013-evolution-d55e49c51f3a45aa4fb3efe22e144bed70549f1b.zip |
Add e_free_string_slist() and e_free_object_slist().
svn path=/trunk/; revision=10613
Diffstat (limited to 'e-util/e-util.c')
-rw-r--r-- | e-util/e-util.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/e-util/e-util.c b/e-util/e-util.c index 35412510d9..82799d280f 100644 --- a/e-util/e-util.c +++ b/e-util/e-util.c @@ -90,6 +90,17 @@ e_free_object_list (GList *list) } void +e_free_object_slist (GSList *list) +{ + GSList *p; + + for (p = list; p != NULL; p = p->next) + gtk_object_unref (GTK_OBJECT (p->data)); + + g_slist_free (list); +} + +void e_free_string_list (GList *list) { GList *p; @@ -100,6 +111,16 @@ e_free_string_list (GList *list) g_list_free (list); } +void +e_free_string_slist (GSList *list) +{ + GSList *p; + + for (p = list; p != NULL; p = p->next) + g_free (p->data); + g_slist_free (list); +} + #define BUFF_SIZE 1024 char * |