From 95deedcc08a89d5278fc6d39269e7dc22d35c0c3 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Mon, 23 Sep 2002 23:49:22 +0000 Subject: [PATCH] * view.c (view): Set view_dlg to NULL after it's destroyed. --- src/ChangeLog | 2 ++ src/view.c | 1 + 2 files changed, 3 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index ecde2ca6e..6d92c564d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2002-09-23 Pavel Roskin + * view.c (view): Set view_dlg to NULL after it's destroyed. + * color.h: Remove EDITOR_UNDERLINED_COLOR, it's unused. * global.h: Move fcntl.h inclusion here. Define O_BINARY. diff --git a/src/view.c b/src/view.c index d70bdab0c..03188efcb 100644 --- a/src/view.c +++ b/src/view.c @@ -2437,6 +2437,7 @@ view (char *_command, const char *_file, int *move_dir_p, int start_line) *move_dir_p = wview->move_dir; } destroy_dlg (our_dlg); + view_dlg = NULL; return !error; }