From 777dc4018ac11b565eeacd9967670989bd28d297 Mon Sep 17 00:00:00 2001 From: 9 Date: Mon, 29 Oct 2001 01:40:59 +0000 Subject: Need to ref rule since add doesn't. This doesn't crash anymore but doesn't 2001-10-29 * 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 --- filter/ChangeLog | 2 ++ filter/rule-editor.c | 1 + 2 files changed, 3 insertions(+) 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 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; -- cgit v1.2.3