From 5f79d67d56b739e45910a286645944f3778ed5d4 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Thu, 5 Aug 2010 09:58:47 -0400 Subject: [PATCH] Bug 568761; WebGL memory leaks; r=vladimir --- content/canvas/src/WebGLContextGL.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/content/canvas/src/WebGLContextGL.cpp b/content/canvas/src/WebGLContextGL.cpp index 46d083dd319..6cca56ad5cd 100644 --- a/content/canvas/src/WebGLContextGL.cpp +++ b/content/canvas/src/WebGLContextGL.cpp @@ -109,7 +109,6 @@ already_AddRefed WebGLProgram::GetUniformLocationObject(GL { WebGLUniformLocation *existingLocationObject; if (mMapUniformLocations.Get(glLocation, &existingLocationObject)) { - NS_ADDREF(existingLocationObject); return existingLocationObject; } else { nsRefPtr loc = new WebGLUniformLocation(mContext, this, glLocation);