[patch] fix crash when cancelling the search dialog
Hi, when cancelling the search dialog in the viewer (F3, F7, ESC ESC), the exp pointer is not allocated and mc occasionally crashes on free. The attached patch fixes it. -- Jindrich Makovicka Index: view.c === RCS file:
Re: [patch] fix crash when cancelling the search dialog
Hi Jindrich, On Sat, 2005-08-27 at 10:56 +0200, Jindrich Makovicka wrote: @@ -2787,8 +2787,8 @@ view-last_search = do_normal_search; cleanup: -g_free (exp); -g_free (defval); +if (exp) g_free (exp); +if (defval) g_free (defval); } static void This hunk is