Proposed fix for bug 2737009 - resource leak in glewinfo and visualinfo tools

View: New views
1 Messages — Rating Filter:   Alert me  

Proposed fix for bug 2737009 - resource leak in glewinfo and visualinfo tools

by Nigel Stewart-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

All,

A fix for bug 2737009 - any concerns?

- Nigel

Index: auto/src/glewinfo_tail.c
===================================================================
--- auto/src/glewinfo_tail.c    (revision 552)
+++ auto/src/glewinfo_tail.c    (working copy)
@@ -170,7 +170,7 @@
  void glewDestroyContext ()
  {
    if (NULL != rc) wglMakeCurrent(NULL, NULL);
-  if (NULL != rc) wglDeleteContext(wglGetCurrentContext());
+  if (NULL != rc) wglDeleteContext(rc);
    if (NULL != wnd && NULL != dc) ReleaseDC(wnd, dc);
    if (NULL != wnd) DestroyWindow(wnd);
    UnregisterClass("GLEW", GetModuleHandle(NULL));

-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information.  Any unauthorized review, use, disclosure or distribution
is prohibited.  If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
glew-coders mailing list
glew-coders@...
https://lists.sourceforge.net/lists/listinfo/glew-coders