mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-28 22:40:07 +01:00
dmx/glxProxy: don't free the glx pixmap twice if AddResource fails
Reviewed-by: Rémi Cardona <remi@gentoo.org> Signed-off-by: Julien Cristau <jcristau@debian.org>
This commit is contained in:
parent
59b9c3d5e4
commit
164753f158
1 changed files with 1 additions and 4 deletions
|
|
@ -2010,11 +2010,8 @@ CreateGLXPixmap(__GLXclientState * cl,
|
|||
XFlush(dpy);
|
||||
}
|
||||
|
||||
if (!(AddResource(glxpixmapId, __glXPixmapRes, pGlxPixmap))) {
|
||||
free(pGlxPixmap->be_xids);
|
||||
free(pGlxPixmap);
|
||||
if (!(AddResource(glxpixmapId, __glXPixmapRes, pGlxPixmap)))
|
||||
return BadAlloc;
|
||||
}
|
||||
|
||||
return Success;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue