|
From: Kyle H. <aer...@gm...> - 2008-08-26 19:55:10
|
This might end up causing a memory leak if driverPrivate isn't freed
ahead of time. If it is, then the place where it's freed should
actually do the re-setting of it to NULL.
-Kyle H
On Tue, Aug 26, 2008 at 12:39 PM, Kaido Kärner <ka...@tr...> wrote:
> Hi!
>
> to quick-fix the assert I used the following approach:
>
> first, in via_context.c in viaDestroyContent() mark the buffer as NULL just
> before the vmesa is freed.
>
> __DRIdrawablePrivate *const drawable = vmesa->driDrawable;
> if (drawable) {
> drawable->driverPrivate = NULL;
> }
>
> second, in via_screen.c in viaDestroyBuffer() check if
> driDrawPriv->driverPrivate is not NULL before acessing it.
>
> works for me.
>
>
> regards,
> kaido
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Mesa3d-users mailing list
> Mes...@li...
> https://lists.sourceforge.net/lists/listinfo/mesa3d-users
>
>
|