Re: Looking for GtkWidget leaks



On Tue, 6 Nov 2001, Michael Meeks wrote:

> 
>         So ... I suspect I'm doing something wrong with widget referencing
> ( almost certainly ) and quite possibly something wrong with GObject
> referencing around the place.
> 
>         So - for peace of mind I re-built with G_ENABLE_DEBUG, and did a
> g_type_init_with_debug () turning on object tracking. After usefully
> catching a missed finalize chaining I switched to a GUI app.
> 
>         Problem is, on exit I seem to get a lot of noise ( or there are a
> lot of leaks ) - are these objects staticaly cached somewhere ?:
> 
> GRuntime-Message: stale GObjects: 16
> GRuntime-Message: [0x805f8b0] stale GdkVisual   ref_count=1
> GRuntime-Message: [0x80601a8] stale GdkDevice   ref_count=1
> GRuntime-Message: [0x805fde8] stale GdkWindowImplX11    ref_count=1
> GRuntime-Message: [0x807e898] stale GdkWindow   ref_count=3
> GRuntime-Message: [0x805f900] stale GdkVisual   ref_count=1
> GRuntime-Message: [0x8060500] stale GdkColormap ref_count=26
> GRuntime-Message: [0x805fb08] stale GdkWindow   ref_count=1
> GRuntime-Message: [0x80908a8] stale GdkPixmap   ref_count=1
> GRuntime-Message: [0x805f950] stale GdkVisual   ref_count=1
> GRuntime-Message: [0x806e198] stale GtkStyle    ref_count=2
> GRuntime-Message: [0x8090a00] stale GdkPixmapImplX11    ref_count=1
> GRuntime-Message: [0x806e7b0] stale GdkImage    ref_count=1
> GRuntime-Message: [0x80658e8] stale GtkSettings ref_count=2
> GRuntime-Message: [0x807e8f8] stale GdkWindowImplX11    ref_count=1
> GRuntime-Message: [0x805f860] stale GdkVisual   ref_count=1
> GRuntime-Message: [0x8054608] stale GnomeProgram        ref_count=2

Not looking at the code, I can only say that GdkVisuals are "static", i.e. 
there is a finite amount of them allocated at startup, and they never die.
I think GdkDevices are the same.

Also, on of the windows is probably the wrapper for the root window.

/ Alex






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