Skip to content

Commit

Permalink
ofxDirList: dir handle wasn't being closed. Closes #163
Browse files Browse the repository at this point in the history
  • Loading branch information
arturoc committed Apr 26, 2010
1 parent f1e3100 commit 51cf4a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/ofxDirList/src/ofxDirList.cpp
Expand Up @@ -130,7 +130,6 @@ int ofxDirList::listDir(string directory){
}
}
}

if(skip) continue;

//finally we store the result
Expand All @@ -139,6 +138,7 @@ int ofxDirList::listDir(string directory){

ofLog(OF_LOG_VERBOSE, "ofxDirList - listing %s ", nameArray.back().c_str());
}
if(dir != NULL) closedir(dir);

ofLog(OF_LOG_VERBOSE, "ofxDirList - listed %i files in %s", nameArray.size(), directory.c_str());
return nameArray.size();
Expand Down

0 comments on commit 51cf4a9

Please sign in to comment.