#35 Fix to bug 1067130 (memory leak in glInterleavedArrays etc)

closed-accepted
None
5
2006-05-14
2005-03-02
No

The _PyObject_AsPointer function in interface_util.c
was leaking a python reference each time it was called.
This one line patch adds a call to Py_DECREF to clean
that up.

Discussion

  • Tom Beaumont

    Tom Beaumont - 2005-03-02

    Diff for interface_util.c

     
  • Mike C. Fletcher

    Logged In: YES
    user_id=34901

    Okay, I can't provoke a leak in any of my tests, but the
    patch seems correct (that is, the function is returning a
    new reference). I've revised it slightly so that it isn't
    reusing the parameter for storing the value (instead using a
    separate variable), but otherwise it's in there.

     
  • Mike C. Fletcher

    • assigned_to: nobody --> mcfletch
    • status: open --> closed-accepted
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks