mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
Fix memory leak in ClutterGLXTexturePixmap.
The OpenGL spec states that if you create a pixmap using glXCreatePixmap you should use glXDestroyPixmap to destroy it. Signed-off-by: Robert Bragg <robert@linux.intel.com>
This commit is contained in:
parent
1e6e41190b
commit
c968b06f15
@ -270,7 +270,7 @@ clutter_glx_texture_pixmap_dispose (GObject *object)
|
||||
{
|
||||
clutter_x11_trap_x_errors ();
|
||||
|
||||
glXDestroyGLXPixmap (clutter_x11_get_default_display(),
|
||||
glXDestroyPixmap (clutter_x11_get_default_display(),
|
||||
priv->glx_pixmap);
|
||||
XSync (clutter_x11_get_default_display(), FALSE);
|
||||
|
||||
@ -607,7 +607,7 @@ clutter_glx_texture_pixmap_free_glx_pixmap (ClutterGLXTexturePixmap *texture)
|
||||
|
||||
clutter_x11_trap_x_errors ();
|
||||
if (priv->glx_pixmap)
|
||||
glXDestroyGLXPixmap (dpy, priv->glx_pixmap);
|
||||
glXDestroyPixmap (dpy, priv->glx_pixmap);
|
||||
XSync (dpy, FALSE);
|
||||
clutter_x11_untrap_x_errors ();
|
||||
priv->glx_pixmap = None;
|
||||
|
Loading…
Reference in New Issue
Block a user