From 9d58610f5ba26f5b408c7560d3a3574db22e2dac Mon Sep 17 00:00:00 2001 From: morpheus65535 <5130500+morpheus65535@users.noreply.github.com> Date: Wed, 28 Mar 2018 16:33:29 -0400 Subject: [PATCH] Enable automatic GC --- bazarr.py | 2 ++ list_subtitles.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/bazarr.py b/bazarr.py index 8def7eea0..c93e88cc4 100644 --- a/bazarr.py +++ b/bazarr.py @@ -1,6 +1,8 @@ bazarr_version = '0.4.0' import gc +gc.enable() + import os import sys sys.path.insert(0,os.path.join(os.path.dirname(__file__), 'libs/')) diff --git a/list_subtitles.py b/list_subtitles.py index fb099fcf9..41a6b0f7b 100644 --- a/list_subtitles.py +++ b/list_subtitles.py @@ -12,6 +12,8 @@ from itertools import islice from get_general_settings import * +gc.enable() + def store_subtitles(file): languages = [] actual_subtitles = []