Re: [gtk-list] Request for new function in glib (was: how can I trust glib when it has so manymemleaks?)



Ionutz Borcoman wrote:

> 2. Unfortunately, I have seen only assuarances from some people that
> glib knows what it does. Ok. I believe them. But they didn't give me a
> way to check that what I am doing is ok.

On my crappy little system, it would go like this (using helloworld.c
from the examples directory):

dbx helloworld
(prompt here) check -leaks
(prompt here) run
Enabling Error Checking... done
[now I click the button]
Hello World
Checking for memory leaks...

Actual leaks report    (actual leaks:         1  total size:       4 bytes)

 Total  Num of  Leaked      Allocation call stack
 Size   Blocks  Block
                Address
 ======  ====== ==========  =======================================
      4       1    0x2c560  _GetIMValues < XGetIMValues < gdk_im_real_open < gdk_im_open < gdk_init_check < gtk_init_check < gtk_init < main 
		        

Possible leaks report  (possible leaks:       0  total size:       0 bytes)

(prompt here) quit

Easy, da? :-)
Now, was that a real leak or my crappy little system misunderstood
something?

-- 
 .-.   .-.    Life is a sexually transmitted disease.
(_  \ /  _)
     |        dave@srce.hr
     |        dave@fly.cc.fer.hr



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