Skip to content

Commit

Permalink
Fixed potential memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
slightlynybbled committed Jul 12, 2018
1 parent ecebc88 commit 815e5d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions tk_tools/canvas.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,7 @@ def _load_new(self, img_data: str):
self._image = tk.PhotoImage(data=img_data)
self._image = self._image.subsample(int(200 / self._size),
int(200 / self._size))
self._canvas.delete('all')
self._canvas.create_image(0, 0, image=self._image, anchor='nw')

if self._user_click_callback is not None:
Expand Down
2 changes: 1 addition & 1 deletion tk_tools/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.10.1'
__version__ = '0.10.2'

0 comments on commit 815e5d8

Please sign in to comment.