close dir opened with opendir() - fixes accumulated fd for plugin state saves

This commit is contained in:
Robin Gareus 2014-06-10 02:21:22 +02:00 committed by Paul Davis
parent 9fd95f2b4e
commit d7a8c58aaa

View file

@ -128,4 +128,5 @@ PBD::remove_directory (const std::string& dir) {
if (::g_rmdir(dir.c_str())) {
error << string_compose (_("cannot remove directory %1 (%2)"), dir, strerror (errno)) << endmsg;
}
::closedir (dead);
}