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 143417 4fbeaf9b6c76a596496b0e9078f03b07330e5527
parent 143416 a991bca0ae09b2dbb16b2a660c57917d236b521e
child 143418 688b86b2ccf661973473e0495cc250f4b6af2d06
push id3926
push userryanvm@gmail.com
push dateMon, 01 Jul 2013 16:21:58 +0000
treeherdermozilla-aurora@1123178aa240 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjgilbert, akeybl
bugs884057
milestone24.0a2
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>