Changeset 12e055f6e6c1a79693f1c61739270ebcb1c0a118

Show
Ignore:
Timestamp:
29/05/07 11:45:21 (1 year ago)
Author:
Olivier Aubert <olivier.aubert@liris.cnrs.fr>
git-committer:
Olivier Aubert <olivier.aubert@liris.cnrs.fr> 1180431921 +0000
git-parent:

[11884b884c536d7f6305ff3459f630bb458ebda2]

git-author:
Olivier Aubert <olivier.aubert@liris.cnrs.fr> 1180431921 +0000
Message:

python bindings, vlc_instance.c: fix memleak + use PyObject?_DEL (patch
by Jan David Mol)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • bindings/python/vlc_instance.c

    r5b8066f r12e055f  
    8383    int i_size = 0; 
    8484 
    85     self = PyObject_New( vlcInstance, &vlcInstance_Type ); 
    86  
    87  
    8885    if( PyArg_ParseTuple( args, "O", &py_list ) ) 
    8986    { 
     
    9895        PyErr_Clear( ); 
    9996    } 
     97 
     98    self = PyObject_New( vlcInstance, &vlcInstance_Type ); 
    10099 
    101100    Py_BEGIN_ALLOW_THREADS 
     
    115114    libvlc_exception_t ex; 
    116115    libvlc_destroy( LIBVLC_INSTANCE->p_instance, &ex ); 
    117     PyMem_DEL( self ); 
     116    PyObject_DEL( self ); 
    118117} 
    119118