Revision: 0c040a7680f4
Branch: default
Author: Juan J. Martínez <
j...@usebox.net>
Date: Mon May 26 09:08:10 2014 UTC
Log: Only if there's a context
http://code.google.com/p/pyglet/source/detail?r=0c040a7680f4
Modified:
/pyglet/media/drivers/openal/__init__.py
=======================================
--- /pyglet/media/drivers/openal/__init__.py Mon May 26 08:42:13 2014 UTC
+++ /pyglet/media/drivers/openal/__init__.py Mon May 26 09:08:10 2014 UTC
@@ -688,11 +688,11 @@
if _debug:
print "Cleaning up audio driver"
- context.lock()
- bufferPool.delete()
- context.unlock()
-
if context:
+ context.lock()
+ bufferPool.delete()
+ context.unlock()
+
context.delete()
context = None