Re: [Gtranslator-devel] GTR_FREE useful?



On àà., 2004-04-08 at 12:44 +0200, Fatih Demir wrote:
> Ross Golder wrote:
> > I'm trying to figure out what extra value is gained from using the
> > GTR_FREE macro, than just using plain g_free. Do we need to NULL the
> > pointer every time? Sounds like a dodgy workaround to prevent again
> > double-free'ing etc. but perhaps we should take it out and fix the
> > double-frees properly instead?
> 
> 
> Yes, would be the right thing to do. I just introduced the GTR_ macros 
> to save some typing and workaround the double freeing problems. I had 
> tried to replace it with g_free but this happened to be a bad thing to 
> do :-)
> 
> I'd crop it out and replace it with g_free and then to look into the 
> crashy cases.
> 

OK, I'll make a mental note to do this once I've dealt with a few more
bugs (esp the plural forms). Then I'll do replace GTR_FREE with g_free,
and see what shakes loose.

Regards,

--
Ross






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