[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xgnokii problems

From: Pawel Kot
Subject: Re: Xgnokii problems
Date: Thu, 27 Jan 2005 00:40:43 +0100 (CET)

On Wed, 26 Jan 2005, Daniele Forsi wrote:

> On Tue, 25 Jan 2005, Pawel Kot wrote:
> > As far as I remember you can safely do g_free() on null.
> yes, but after a g_free() xgnokiiConfig.help_locale is not null since g_free()
> can't set its argument to null
> the problem is
> 2368: g_free(xgnokiiConfig.help_locale);
> 2369-2370: // if pos == NULL there is no g_strndup()

Isn't xgnokiiConfig.help_locale == NULL at the moment?

> // so xgnokiiConfig.help_locale still points to the alreadly freed memory
> 2374: g_free(xgnokiiConfig.help_locale); // Segmentation fault
> I found it because my locale is it_IT

Hm. Strange, my locale is pl_PL and it works.
Can 'xgnokiiConfig.help_locale = NULL' after the first g_free() help?

p k o t a t b e z s e n s u d o t p l

reply via email to

[Prev in Thread] Current Thread [Next in Thread]