commit | 91ac84f75aa13b21f73734dad0c591864d0d2256 | [log] [tgz] |
---|---|---|
author | [email protected] <[email protected]@0039d316-1c4b-4281-b951-d872f2087c98> | Wed Jun 22 19:48:02 2011 |
committer | [email protected] <[email protected]@0039d316-1c4b-4281-b951-d872f2087c98> | Wed Jun 22 19:48:02 2011 |
tree | c5ed2aa8961adcc1a957f1ebc746e798f9a67882 | |
parent | 03a4b48659eb4bc8f55b48f83cfa576703e0c361 [diff] [blame] |
RESOURCE_LEAK coverity fix. CID=16416 BUG=none TEST=none Review URL: http://codereview.chromium.org/7228002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90076 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/ui/gfx/gl/gl_implementation_linux.cc b/ui/gfx/gl/gl_implementation_linux.cc index 6daa1a5..7baf2f6 100644 --- a/ui/gfx/gl/gl_implementation_linux.cc +++ b/ui/gfx/gl/gl_implementation_linux.cc
@@ -111,8 +111,10 @@ if (!gles_library) return false; base::NativeLibrary egl_library = LoadLibrary("libEGL.so"); - if (!egl_library) + if (!egl_library) { + base::UnloadNativeLibrary(gles_library); return false; + } GLGetProcAddressProc get_proc_address = reinterpret_cast<GLGetProcAddressProc>(