]> git.tdb.fi Git - libs/al.git/blobdiff - source/context.cpp
Add Streamer class
[libs/al.git] / source / context.cpp
index aa316fd89e49dcb64b0909c1be74de3d76aafa21..847680a20a338c7439be2beb3fed0a3f54a081b7 100644 (file)
@@ -2,7 +2,7 @@
 
 This file is part of libmspal
 Copyright © 2008 Mikko Rasa, Mikkosoft Productions
-Diestributed under the LGPL
+Distributed under the LGPL
 */
 
 #include <msp/core/except.h>
@@ -21,5 +21,10 @@ Context::Context(Device &dev)
        alcMakeContextCurrent(context);
 }
 
+Context::~Context()
+{
+       alcDestroyContext(context);
+}
+
 } // namespace AL
 } // namespace Msp