From: Jakob Bornecrantz Date: Mon, 31 Aug 2009 23:24:53 +0000 (+0100) Subject: st/xorg: Fix crash in MPH X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7b32da0b11a769be057cdd3e619d582b433bbb0e;p=mesa.git st/xorg: Fix crash in MPH --- diff --git a/src/gallium/state_trackers/xorg/xorg_exa.c b/src/gallium/state_trackers/xorg/xorg_exa.c index 305d75d520a..3697d26363e 100644 --- a/src/gallium/state_trackers/xorg/xorg_exa.c +++ b/src/gallium/state_trackers/xorg/xorg_exa.c @@ -485,7 +485,7 @@ ExaModifyPixmapHeader(PixmapPtr pPixmap, int width, int height, exa->scrn->tex_surface_destroy(dst_surf); exa->scrn->tex_surface_destroy(priv->src_surf); priv->src_surf = NULL; - } else { + } else if (pPixmap->devPrivate.ptr) { struct pipe_transfer *transfer; if (priv->map_count != 0)