aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-option.c
diff options
context:
space:
mode:
Diffstat (limited to 'filter/filter-option.c')
-rw-r--r--filter/filter-option.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/filter/filter-option.c b/filter/filter-option.c
index 5167a3df9b..9648bc36a0 100644
--- a/filter/filter-option.c
+++ b/filter/filter-option.c
@@ -113,11 +113,21 @@ filter_option_init (FilterOption *o)
}
static void
+free_option(struct _filter_option *o, void *data)
+{
+ g_free(o->title);
+ g_free(o->value);
+ g_free(o->code);
+ g_free(o);
+}
+
+static void
filter_option_finalise (GtkObject *obj)
{
FilterOption *o = (FilterOption *)obj;
-
- o = o;
+
+ g_list_foreach(o->options, (GFunc)free_option, NULL);
+ g_list_free(o->options);
((GtkObjectClass *)(parent_class))->finalize(obj);
}