opengl32: Avoid leaking memory on error paths (Coverity). Fixes 11728e0a9c58f1b7a8d320b05f1ce40e4fa3c790.