gnokii-users
[Top][All Lists]
Advanced

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

Re: Xgnokii problems


From: Pawel Kot
Subject: Re: Xgnokii problems
Date: Tue, 25 Jan 2005 00:43:47 +0100 (CET)

On Tue, 25 Jan 2005, Daniele Forsi wrote:

> ok (I didn't like the "return" I proposed), but there is a double memory free
> when pos is NULL: in this case the program always enters the second
>       if (!LocaleHelpExists(xgnokiiConfig.help_locale))
> because xgnokiiConfig.help_locale is unchanged

As far as I remember you can safely do g_free() on null. That's why I did
it this way. See:
http://developer.gnome.org/doc/API/2.0/glib/glib-Memory-Allocation.html#g-free
I think glib1.x did it the same way.

take care,
pkot
-- 
p k o t a t b e z s e n s u d o t p l
http://www.gnokii.org/




reply via email to

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