Commit 79218df
committed
Fix leak of filedescriptor if fontsize cannot be set.
Closes #7922
Should prevent resources warnings from poping up in scipts of the type:
import warnings
warnings.simplefilter('default')
from matplotlib.ft2font import FT2Font
FT2Font('/System/Library/Fonts/Apple Color Emoji.ttf')1 parent f41ef96 commit 79218df
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
508 | 508 | | |
509 | 509 | | |
510 | 510 | | |
| 511 | + | |
511 | 512 | | |
512 | 513 | | |
513 | 514 | | |
| |||
0 commit comments