diff options
author | 9 <NotZed@Ximian.com> | 2001-10-29 09:40:59 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2001-10-29 09:40:59 +0800 |
commit | 777dc4018ac11b565eeacd9967670989bd28d297 (patch) | |
tree | c64ecaa851dbb249288befb16db4f74b33fbc8d1 /filter | |
parent | 7b02e2e055f79a3bc942c927be5c1f1b8b7f9d14 (diff) | |
download | gsoc2013-evolution-777dc4018ac11b565eeacd9967670989bd28d297.tar gsoc2013-evolution-777dc4018ac11b565eeacd9967670989bd28d297.tar.gz gsoc2013-evolution-777dc4018ac11b565eeacd9967670989bd28d297.tar.bz2 gsoc2013-evolution-777dc4018ac11b565eeacd9967670989bd28d297.tar.lz gsoc2013-evolution-777dc4018ac11b565eeacd9967670989bd28d297.tar.xz gsoc2013-evolution-777dc4018ac11b565eeacd9967670989bd28d297.tar.zst gsoc2013-evolution-777dc4018ac11b565eeacd9967670989bd28d297.zip |
Need to ref rule since add doesn't. This doesn't crash anymore but doesn't
2001-10-29 <NotZed@Ximian.com>
* rule-editor.c:
(rule_editor_play_undo): Need to ref rule since add doesn't. This
doesn't crash anymore but doesn't seem to do everything right either.
svn path=/trunk/; revision=14312
Diffstat (limited to 'filter')
-rw-r--r-- | filter/ChangeLog | 2 | ||||
-rw-r--r-- | filter/rule-editor.c | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/filter/ChangeLog b/filter/ChangeLog index f7ab149b1d..3f2cf98c34 100644 --- a/filter/ChangeLog +++ b/filter/ChangeLog @@ -3,6 +3,8 @@ * rule-editor.c: Some debug printf fixes for printf's that dont like null %s's. Fixed previous fix. + (rule_editor_play_undo): Need to ref rule since add doesn't. This + doesn't crash anymore but doesn't seem to do everything right either. 2001-10-28 <NotZed@Ximian.com> diff --git a/filter/rule-editor.c b/filter/rule-editor.c index b14b265bb4..1c705a5e15 100644 --- a/filter/rule-editor.c +++ b/filter/rule-editor.c @@ -564,6 +564,7 @@ rule_editor_play_undo(RuleEditor *re) break; case RULE_EDITOR_LOG_REMOVE: printf("Undoing remove on rule '%s'\n", undo->rule->name); + gtk_object_ref((GtkObject *)undo->rule); rule_context_add_rule(re->context, undo->rule); rule_context_rank_rule(re->context, undo->rule, undo->rank); break; |