[patch] fix crash when cancelling the search dialog
Jindrich Novy
jnovy at redhat.com
Sat Aug 27 09:41:00 UTC 2005
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 not needed as g_free() handles case of freeing NULL
pointer.
Jindrich
--
Jindrich Novy <jnovy at redhat.com>, http://people.redhat.com/jnovy/
(o_ _o)
//\ The worst evil in the world is refusal to think. //\
V_/_ _\_V
More information about the mc-devel
mailing list