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
					
				|  | @ -2010,11 +2010,8 @@ CreateGLXPixmap(__GLXclientState * cl, | ||||||
|         XFlush(dpy); |         XFlush(dpy); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     if (!(AddResource(glxpixmapId, __glXPixmapRes, pGlxPixmap))) { |     if (!(AddResource(glxpixmapId, __glXPixmapRes, pGlxPixmap))) | ||||||
|         free(pGlxPixmap->be_xids); |  | ||||||
|         free(pGlxPixmap); |  | ||||||
|         return BadAlloc; |         return BadAlloc; | ||||||
|     } |  | ||||||
| 
 | 
 | ||||||
|     return Success; |     return Success; | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue