File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -193,7 +193,10 @@ FT2Image::py_write_bitmap(const Py::Tuple & args)
193
193
194
194
write_bitmap (fh);
195
195
196
- mpl_PyFile_DupClose (py_file, fh, offset);
196
+ if (mpl_PyFile_DupClose (py_f
9E68
ile, fh, offset))
197
+ {
198
+ throw Py::Exception ();
199
+ }
197
200
mpl_PyFile_CloseFile (py_file);
198
201
Py_DECREF (py_file);
199
202
@@ -2143,7 +2146,10 @@ static void close_file_callback(FT_Stream stream)
2143
2146
{
2144
2147
py_file_def *def = (py_file_def *)stream->descriptor .pointer ;
2145
2148
2146
- mpl_PyFile_DupClose (def->py_file , def->fp , def->offset );
2149
+ if (mpl_PyFile_DupClose (def->py_file , def->fp , def->offset ))
2150
+ {
2151
+ throw Py::Exception ();
2152
+ }
2147
2153
2148
2154
if (def->close_file ) {
2149
2155
mpl_PyFile_CloseFile (def->py_file );
You can’t perform that action at this time.
0 commit comments