X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdevice.cpp;h=dcc78f1aa949b37dbe173adf96a3cb140e1f41ff;hb=58dc1e7c15f928d0f861a20c46f2be4112bf5baf;hp=422b7ea2f8e055970c6ba9d6d9297c60a0f95e58;hpb=35ea5cc8d1eb8c806885d27441548f630e7b1266;p=libs%2Fal.git diff --git a/source/device.cpp b/source/device.cpp index 422b7ea..dcc78f1 100644 --- a/source/device.cpp +++ b/source/device.cpp @@ -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 @@ -27,5 +27,10 @@ Device::Device(const string &spec) throw Exception("Couldn't get OpenAL device"); } +Device::~Device() +{ + alcCloseDevice(dev); +} + } // namespace AL } // namespace Msp