Hi,

running "valgrind --leak-check=full --show-reachable=yes glxgears" shows e.g.:

==24009== 97,960 (94,400 direct, 3,560 indirect) bytes in 1 blocks are
definitely lost in loss record 55 of 55
==24009==    at 0x4C216F4: calloc (vg_replace_malloc.c:397)
==24009==    by 0x729C312: brwCreateContext (brw_context.c:84)
==24009==    by 0x725B228: driCreateNewContext (dri_util.c:598)
==24009==    by 0x4E71C88: dri2CreateContext (dri2_glx.c:132)
==24009==    by 0x4E4AD12: CreateContext (glxcmds.c:401)
==24009==    by 0x4E4B1B2: glXCreateContext (glxcmds.c:487)
==24009==    by 0x402FC3: (within /usr/bin/glxgears)
==24009==    by 0x534C5A5: (below main) (libc-start.c:222)
==24009==
==24009== LEAK SUMMARY:
==24009==    definitely lost: 94,864 bytes in 8 blocks.

brw_context.c:84 is   struct brw_context *brw = (struct brw_context *)
CALLOC_STRUCT(brw_context);

and is never freed directly in intelDestroyContext (this is the place
to be freed right?) that is shared (I think after a quick review) for
i915 and i965.

Is there a particular reason that no i915DestroyContext (in
i915_context.[ch]) and brwDestroyContext (in brw_context.[ch]) is
defined? If no, may I propose patches to fix this?

Thanks,
Kristof

------------------------------------------------------------------------------
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to