Skip to content

Commit

Permalink
clear cache at exit
Browse files Browse the repository at this point in the history
  • Loading branch information
homm committed Sep 19, 2017
1 parent 654b5f7 commit 5366a94
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions PIL/Image.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ def __getattr__(self, id):
import sys
import io
import struct
import atexit

# type stuff
import collections
Expand Down Expand Up @@ -2861,3 +2862,4 @@ def _apply_env_variables(env=None):
warnings.warn("{0}: {1}".format(var_name, e))

_apply_env_variables()
atexit.register(core.clear_cache)

0 comments on commit 5366a94

Please sign in to comment.