[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Beaver-devel] Memory leaks
From: |
Leslie Polzer |
Subject: |
Re: [Beaver-devel] Memory leaks |
Date: |
Sat, 7 Jun 2003 19:50:55 +0200 |
On Sat, 07 Jun 2003 12:41:25 -0400
Michael Terry <address@hidden> wrote:
> The problem, of course, is that you don't save a pointer to the freshly
> g_malloc'ed strings you use. For example, the first line up there
> should be:
> gchar *home = g_get_home_dir ();
> str_replace_str (&conf_val, home, "~");
> g_free (home);
Thanks again, you're surely the C programmer with more experience
and exercise... guess my sloppy style comes from PHP and C++.
I'll keep it in mind in the future.
Greetings,
Leslie
--
Current Main System: LFS Linux dreadnought 2.4.20 #18 Thu May 15 19:11:10 CEST
2003 i686
Random Religious Statement: GNOME at least sucks less than KDE!