Annotation of /trunk/pyvorbis/patches/pyvorbis-1.4-file-descriptor.patch
Parent Directory | Revision Log
Revision 364 -
(hide annotations)
(download)
Tue Sep 25 20:48:24 2007 UTC (17 years ago) by niro
File size: 564 byte(s)
Tue Sep 25 20:48:24 2007 UTC (17 years ago) by niro
File size: 564 byte(s)
-fixes a small bug
1 | niro | 364 | --- src/pyvorbisfile.c.orig 2003-12-19 07:11:02.000000000 +0000 |
2 | +++ src/pyvorbisfile.c 2005-09-03 20:02:19.000000000 +0100 | ||
3 | @@ -190,9 +190,6 @@ | ||
4 | /* If file was opened from a file object, decref it, so it can | ||
5 | close */ | ||
6 | Py_DECREF(py_self->py_file); | ||
7 | - } else { | ||
8 | - /* Otherwise, we opened the file and should close it. */ | ||
9 | - fclose(py_self->c_file); | ||
10 | } | ||
11 | |||
12 | PyMem_DEL(self); | ||
13 | @@ -260,7 +257,6 @@ | ||
14 | |||
15 | retval = ov_open(file, self->ovf, initial, ibytes); | ||
16 | |||
17 | - self->c_file = file; | ||
18 | if (retval < 0) { | ||
19 | if (fname != NULL) | ||
20 | fclose(file); |