From 8e0d1a9281a9b83f9abe200e1b4f5cb92f96e3cc Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Mon, 2 Nov 2015 21:37:52 -0500 Subject: [PATCH] return data is put into the queue. Refs #18583 --- main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.py b/main.py index 775538a..a62656b 100755 --- a/main.py +++ b/main.py @@ -587,6 +587,9 @@ def threaded_image_builder(data, reference_profile, dataQueue, settings = dict() return_data['kivy_image'] = kivy.core.image.Image(image_bytes, ext = 'png') Logger.debug('threaded_image_builder: Took ' + str(time.time() - start) + ' seconds to manipulate image data') dataQueue.put_nowait(return_data) + # Destroy the created figure to prevent hogging memory. + # @see https://redmine.koumbit.net/issues/18583 + figure.clear() def init_plot(settings = dict()):