[Mesa-dev] [Bug 31128] New: Memory leak on multiple OSMesaMakeCurrent calls

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Oct 26 01:48:18 PDT 2010


           Summary: Memory leak on multiple OSMesaMakeCurrent calls
           Product: Mesa
           Version: 7.8
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Other
        AssignedTo: mesa-dev at lists.freedesktop.org
        ReportedBy: dawhitehouse at hotmail.co.uk

This is related to 29824. We're using version 7.8.2.

Our product makes a call to OSMesaCreateContextExt and then multiple calls to
OSMesaMakeCurrent. The fix for 29824 fixed the assert we were getting but
OSMesaMakeCurrent is leaking memory for every call after the first because it
allocates a new renderbuffer.

At line 1331:

osmesa->rb = new_osmesa_renderbuffer(&osmesa->mesa, osmesa->format, type);

however in this situation osmesa->rb may already have been allocated.

Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the mesa-dev mailing list