Re: Simple boxing



On Wed, Nov 03, 2004 at 01:26:47PM +0100, Sven Neumann wrote:
> 
> It isn't really recommended to treat objects like this. Of course if
> you know what you are doing, it will work. But I wouldn't suggest to
> do it this way as it may very well fall onto your feet one day.

Well, it isn't.  And yet I'm strongly tempted to do the same
for strings that are duplicated every time I fetch them too.
I have probably still lots of memory leaks in apps from the
time before I found this out.  I'd like some
G_TYPE_STRING_DONT_DUPLICATE_IT_LIKE_MAD and
G_TYPE_OBJECT_DONT_REFERENCE_IT_LIKE_MAD column types.

And I wonder how many people is still unaware of it and
happily leak memory...

Yeti


--
Dynamic IP address is not a crime.



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