Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#4 Memleaks and Refcount corruptions

closed-accepted
nobody
None
5
2001-04-22
2001-04-17
Anonymous
No

There were a couple memoryleaks and reference count
corruptions in some of the functions. This was only
happening on the NON-numeric version of
_openglmodule.c, since these functions were calling
Py_DECREF() to free objects, instead of the
PyArray_ClearMemory macro that is required.

This change effects the glMap*, glRect*, and
glClipPlane functions.

Discussion

  •  
    Attachments
    • status: open --> closed-accepted
     
  • Logged In: YES
    user_id=34901

    Added to _openglmodule.c, tested with Python 1.5.2, would
    like to have a test to actually check the leak/corruption
    (and lack thereof after the patch).