From d44e35b889b2333fd730a0a02b08b5cf88bd9e2b Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 19 Jul 2004 20:39:52 +0000 Subject: [PATCH] close m_fd --- .../src/arch/MemoryCard/MemoryCardDriverThreaded_Linux.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stepmania/src/arch/MemoryCard/MemoryCardDriverThreaded_Linux.cpp b/stepmania/src/arch/MemoryCard/MemoryCardDriverThreaded_Linux.cpp index 3b8dfa95d1..86144cdf13 100644 --- a/stepmania/src/arch/MemoryCard/MemoryCardDriverThreaded_Linux.cpp +++ b/stepmania/src/arch/MemoryCard/MemoryCardDriverThreaded_Linux.cpp @@ -139,6 +139,8 @@ MemoryCardDriverThreaded_Linux::MemoryCardDriverThreaded_Linux() MemoryCardDriverThreaded_Linux::~MemoryCardDriverThreaded_Linux() { this->StopThread(); + if( m_fd != -1 ) + close( m_fd ); } void MemoryCardDriverThreaded_Linux::ResetUsbStorage()