Re: [patch] fix crash when cancelling the search dialog
- From: Jindrich Novy <jnovy redhat com>
- To: Jindrich Makovicka <makovick kmlinux fjfi cvut cz>
- Cc: MC Devel <mc-devel gnome org>
- Subject: Re: [patch] fix crash when cancelling the search dialog
- Date: Sat, 27 Aug 2005 11:41:00 +0200
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 redhat com>, http://people.redhat.com/jnovy/
(o_ _o)
//\ The worst evil in the world is refusal to think. //\
V_/_ _\_V
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]