Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 101059
Collapse All | Expand All

(-)src/pyvorbisfile.c.orig (-4 lines)
Lines 190-198 Link Here
190
    /* If file was opened from a file object, decref it, so it can
190
    /* If file was opened from a file object, decref it, so it can
191
       close */
191
       close */
192
    Py_DECREF(py_self->py_file);
192
    Py_DECREF(py_self->py_file);
193
  } else {
194
    /* Otherwise, we opened the file and should close it. */
195
    fclose(py_self->c_file);
196
  }
193
  }
197
194
198
  PyMem_DEL(self);
195
  PyMem_DEL(self);
Lines 260-266 Link Here
260
  
257
  
261
  retval = ov_open(file, self->ovf, initial, ibytes);
258
  retval = ov_open(file, self->ovf, initial, ibytes);
262
259
263
  self->c_file = file;
264
  if (retval < 0) {
260
  if (retval < 0) {
265
    if (fname != NULL)
261
    if (fname != NULL)
266
      fclose(file);
262
      fclose(file);

Return to bug 101059