restore ids when closing audio streams

This commit is contained in:
Alexander Eckart committed 2013-05-01 19:01:37 +02:00
1 parent 7845c74e13
commit 7b91dd1748
1 file changed
+2
+2
View File
@@ -83,6 +83,7 @@ DllExport void Close(int Stream)
if(it != Streams.end())
{
delete it->second;
IDs.push(it->first);
Streams.erase(it);
}
}
@@ -236,6 +237,7 @@ DllExport void Update(void)
if(p->second->Closed)
{
delete p->second;
IDs.push(p->first);
Streams.erase(p++);
}
else {