]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/xf86-video-omap.git/commitdiff
exa: fix double free of scanout bo on resize
authorRob Clark <rob@ti.com>
Fri, 13 Apr 2012 18:32:57 +0000 (13:32 -0500)
committerRob Clark <rob@ti.com>
Sat, 14 Apr 2012 01:13:11 +0000 (20:13 -0500)
The scanout buffer free'ing for the screen pixmap is handled elsewhere.

src/omap_exa.c

index 53e724b1373fc4a8732f3ee7cf32a3af40762a0d..3d175fa83d34e1e2ddb863d813a4e31c71600cd5 100644 (file)
@@ -100,10 +100,7 @@ OMAPModifyPixmapHeader(PixmapPtr pPixmap, int width, int height,
 
        if (pPixData == omap_bo_map(pOMAP->scanout)) {
                DEBUG_MSG("wrapping scanout buffer");
-               if (priv->bo != pOMAP->scanout) {
-                       omap_bo_del(priv->bo);
-                       priv->bo = pOMAP->scanout;
-               }
+               priv->bo = pOMAP->scanout;
                return TRUE;
        } else if (pPixData) {
                /* we can't accelerate this pixmap, and don't ever want to