diff options
author | Bill Zhu <bill.zhu@sun.com> | 2004-03-16 15:46:05 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2004-03-16 15:46:05 +0800 |
commit | 6d69af64501bcad90929af835220d41bf874d614 (patch) | |
tree | 00a90fba1353d88c9d43bd63942dae1a58389ad8 /filter | |
parent | d9498079f361e18b24ef6113793d481f20cb36ae (diff) | |
download | gsoc2013-evolution-6d69af64501bcad90929af835220d41bf874d614.tar.gz gsoc2013-evolution-6d69af64501bcad90929af835220d41bf874d614.tar.zst gsoc2013-evolution-6d69af64501bcad90929af835220d41bf874d614.zip |
When copying a FilterPart of a rule, we need copy the data of parts
2004-03-14 Bill Zhu <bill.zhu@sun.com>
* filter-rule.c (rule_copy): When copying a FilterPart of a rule, we
need copy the data of parts together but not only copy the pointer.
svn path=/trunk/; revision=25086
Diffstat (limited to 'filter')
-rw-r--r-- | filter/ChangeLog | 5 | ||||
-rw-r--r-- | filter/filter-rule.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/filter/ChangeLog b/filter/ChangeLog index cdbd36f7fa..0826237f93 100644 --- a/filter/ChangeLog +++ b/filter/ChangeLog @@ -1,3 +1,8 @@ +2004-03-14 Bill Zhu <bill.zhu@sun.com> + + * filter-rule.c (rule_copy): When copying a FilterPart of a rule, we + need copy the data of parts together but not only copy the pointer. + 2004-04-15 Rodney Dawes <dobey@ximian.com> * filter-datespec.c (validate): diff --git a/filter/filter-rule.c b/filter/filter-rule.c index fdf59a5c6f..0aed1c4260 100644 --- a/filter/filter-rule.c +++ b/filter/filter-rule.c @@ -437,8 +437,9 @@ rule_copy (FilterRule *dest, FilterRule *src) node = src->parts; while (node) { - FilterPart *part = node->data; - + FilterPart *part; + + part = filter_part_clone (node->data); g_object_ref (part); dest->parts = g_list_append (dest->parts, part); node = node->next; |