- client: fix a handle leak I just introduced.

(From: Andreas a.k.a Gipsel)
        
    lib/
        coproc.cpp

svn path=/trunk/boinc/; revision=19226
This commit is contained in:
Rom Walton 2009-10-01 19:15:42 +00:00
parent 2c9f5ed224
commit 2b6f430094
2 changed files with 11 additions and 2 deletions

View File

@ -8288,3 +8288,10 @@ Rom 1 Oct 2009
lib/
coproc.cpp
Rom 1 Oct 2009
- client: fix a handle leak I just introduced.
(From: Andreas a.k.a Gipsel)
lib/
coproc.cpp

View File

@ -709,8 +709,10 @@ void COPROC_ATI::get(COPROCS& coprocs,
}
HINSTANCE amdlib = LoadLibrary(amdlib_name);
if (!atirt_detected && amdlib) {
amdrt_detected = true;
if (amdlib) {
if (!atirt_detected) {
amdrt_detected = true;
}
FreeLibrary(amdlib);
}