aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-util.c-8611
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2000-05-03 12:06:19 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2000-05-03 12:06:19 +0800
commit72c77c6f4a9e67fa9b74265b4b5f444c744b2bc6 (patch)
tree5eebabe7fcb1c394e21133262747346d152eafe9 /e-util/e-util.c-8611
parentf27621c3a268ed5ea9ff320d6d049bac76e28a37 (diff)
downloadgsoc2013-evolution-72c77c6f4a9e67fa9b74265b4b5f444c744b2bc6.tar.gz
gsoc2013-evolution-72c77c6f4a9e67fa9b74265b4b5f444c744b2bc6.tar.zst
gsoc2013-evolution-72c77c6f4a9e67fa9b74265b4b5f444c744b2bc6.zip
New function to free a list of referenced objects.
svn path=/trunk/; revision=2772
Diffstat (limited to 'e-util/e-util.c-8611')
-rw-r--r--e-util/e-util.c-861115
1 files changed, 14 insertions, 1 deletions
diff --git a/e-util/e-util.c-8611 b/e-util/e-util.c-8611
index d637b33729..f2d787f37e 100644
--- a/e-util/e-util.c-8611
+++ b/e-util/e-util.c-8611
@@ -20,8 +20,10 @@
* Boston, MA 02111-1307, USA.
*/
-#include "e-util.h"
#include <glib.h>
+#include <gtk/gtkobject.h>
+
+#include "e-util.h"
int
g_str_compare(const void *x, const void *y)
@@ -39,3 +41,14 @@ g_int_compare(const void *x, const void *y)
else
return -1;
}
+
+void
+e_free_object_list (GList *list)
+{
+ GList *p;
+
+ for (p = list; p != NULL; p = p->next)
+ gtk_object_unref (GTK_OBJECT (p->data));
+
+ g_list_free (list);
+}