[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Xgnokii problems
From: |
Daniele Forsi |
Subject: |
Re: Xgnokii problems |
Date: |
Wed, 26 Jan 2005 23:54:00 +0100 |
User-agent: |
KMail/1.4.3 |
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()
// 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
Daniele
- Re: Xgnokii problems,
Daniele Forsi <=