Fixing the MediaProcessor context manager so it actually, you know, works :)

This commit sponsored by Mikiya Okuno.  Thank you!
This commit is contained in:
Christopher Allan Webber 2013-08-12 10:48:07 -05:00 committed by Rodney Ewing
parent 5fd239fa58
commit 7a85bf985d

View File

@ -123,6 +123,7 @@ class MediaProcessor(object):
def __enter__(self): def __enter__(self):
self.workbench = mgg.workbench_manager.create() self.workbench = mgg.workbench_manager.create()
return self
def __exit__(self, *args): def __exit__(self, *args):
self.workbench.destroy() self.workbench.destroy()