Bug 884057 - Fix a memory leak in GLContextProviderGLX: was not destroying pixmaps used for offscreen contexts. r=jgilbert, a=akeybl
authorBenoit Jacob <bjacob@mozilla.com>
Sun, 16 Jun 2013 22:03:12 -0400
changeset 142999 384a7ae08ab16c33dc58b2ba6703d5e478f960b4
parent 142998 d97c3cb4ed9abb7b01bbfa18d8ba03ee831d1804
child 143000 598ce43be9d3d8c39267e85d6c68184043af1f04
push id2598
push userryanvm@gmail.com
push dateMon, 01 Jul 2013 16:19:31 +0000
treeherdermozilla-beta@e594a238293e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjgilbert, akeybl
bugs884057
milestone23.0
Bug 884057 - Fix a memory leak in GLContextProviderGLX: was not destroying pixmaps used for offscreen contexts. r=jgilbert, a=akeybl
gfx/gl/GLContextProviderGLX.cpp
--- a/gfx/gl/GLContextProviderGLX.cpp
+++ b/gfx/gl/GLContextProviderGLX.cpp
@@ -1382,17 +1382,17 @@ DONE_CREATING_PIXMAP:
         GLContextGLX* shareContext = GetGlobalContextGLX(flag);
 
         glContext = GLContextGLX::CreateGLContext(dummyCaps,
                                                   shareContext,
                                                   true,
                                                   display,
                                                   glxpixmap,
                                                   cfgs[chosenIndex],
-                                                  false,
+                                                  true,
                                                   libToUse,
                                                   xsurface);
     }
 
     return glContext.forget();
 }
 
 already_AddRefed<GLContext>