about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMarvin Johanning <manimusmuellus@gmail.com>2017-11-27 15:25:13 +0100
committerhut <hut@hut.pm>2017-11-28 23:16:52 +0100
commitdf6a07140c04ce24620337c5211dbaa762dde027 (patch)
tree9f15958a29c36cbafe35eff2a9373e4cc5741d6c
parent4a5090d80e70e1afdbac728ca4b4584c999ca6dc (diff)
downloadranger-df6a07140c04ce24620337c5211dbaa762dde027.tar.gz
Fixed memory leakage (squashed 2 commits)
-rw-r--r--ranger/ext/img_display.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ranger/ext/img_display.py b/ranger/ext/img_display.py
index c88b5a77..c55d835e 100644
--- a/ranger/ext/img_display.py
+++ b/ranger/ext/img_display.py
@@ -121,6 +121,8 @@ class W3MImageDisplayer(ImageDisplayer):
         self.process.stdin.write(input_gen)
         self.process.stdin.flush()
         self.process.stdout.readline()
+        self.quit()
+        self.is_initialized = False
 
     def clear(self, start_x, start_y, width, height):
         if not self.is_initialized or self.process.poll() is not None: