Skip to content

Commit

Permalink
fix: beetsplug web: memory leak beetbox#2600 - beetbox#2600
Browse files Browse the repository at this point in the history
  • Loading branch information
robot3498712 committed Jun 19, 2017
1 parent d210645 commit 9d49e60
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions beetsplug/web/__init__.py
Expand Up @@ -194,6 +194,11 @@ class EverythingConverter(PathConverter):
app.url_map.converters['everything'] = EverythingConverter


@app.teardown_appcontext
def teardown_appcontext(error):
g.lib._close()


@app.before_request
def before_request():
g.lib = app.config['lib']
Expand Down

0 comments on commit 9d49e60

Please sign in to comment.