diff options
author | Julien Cristau <jcristau@debian.org> | 2016-03-02 21:19:33 +0100 |
---|---|---|
committer | Julien Cristau <jcristau@debian.org> | 2016-03-02 21:30:17 +0100 |
commit | ca219fe317dd10216f93fc7e06a3a6d3aa4dba0d (patch) | |
tree | 97847a8501333d6c5605e0edbd6dcf86259cec58 | |
parent | c8e3aef1768ef5d47e61eb5de1eb27b41c2b5186 (diff) |
dmx/glxProxy: don't free the glx pixmap twice if AddResource fails
Signed-off-by: Julien Cristau <jcristau@debian.org>
-rw-r--r-- | hw/dmx/glxProxy/glxcmds.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/hw/dmx/glxProxy/glxcmds.c b/hw/dmx/glxProxy/glxcmds.c index ddcb98135..a77d556db 100644 --- a/hw/dmx/glxProxy/glxcmds.c +++ b/hw/dmx/glxProxy/glxcmds.c @@ -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; } |