aboutsummaryrefslogtreecommitdiff
path: root/src/stable/queuebuf.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2023-07-31 16:12:54 -0700
committerMike Buland <eichlan@xagasoft.com>2023-07-31 16:12:54 -0700
commitfc83cb3fa5b15e9fb20a9180a3880297cf398de7 (patch)
treea55a0174fdbfd77b9b325b089b1ec314284b5644 /src/stable/queuebuf.cpp
parenta49af97abf091a32f6ec2c3985aa0890ded65d9c (diff)
downloadlibbu++-fc83cb3fa5b15e9fb20a9180a3880297cf398de7.tar.gz
libbu++-fc83cb3fa5b15e9fb20a9180a3880297cf398de7.tar.bz2
libbu++-fc83cb3fa5b15e9fb20a9180a3880297cf398de7.tar.xz
libbu++-fc83cb3fa5b15e9fb20a9180a3880297cf398de7.zip
Issue found with recycled fds.
We don't always clean up instantly, but the system is reusing ids before we're ready.
Diffstat (limited to '')
-rw-r--r--src/stable/queuebuf.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/stable/queuebuf.cpp b/src/stable/queuebuf.cpp
index f80f9d9..29da6ba 100644
--- a/src/stable/queuebuf.cpp
+++ b/src/stable/queuebuf.cpp
@@ -22,6 +22,7 @@ Bu::QueueBuf::~QueueBuf()
22{ 22{
23 for( BlockList::iterator i = lBlocks.begin(); i; i++ ) 23 for( BlockList::iterator i = lBlocks.begin(); i; i++ )
24 delete[] *i; 24 delete[] *i;
25 lBlocks.clear();
25} 26}
26 27
27void Bu::QueueBuf::close() 28void Bu::QueueBuf::close()