mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-29 00:23:48 +00:00
chore(Deps/Acelite): Update to 6.5.10 (#3450)
This commit is contained in:
16
deps/acelite/ace/Dirent_Selector.cpp
vendored
16
deps/acelite/ace/Dirent_Selector.cpp
vendored
@@ -7,6 +7,10 @@
|
||||
#include "ace/OS_NS_dirent.h"
|
||||
#include "ace/OS_NS_stdlib.h"
|
||||
|
||||
#if defined (ACE_HAS_ALLOC_HOOKS)
|
||||
# include "ace/Malloc_Base.h"
|
||||
#endif /* ACE_HAS_ALLOC_HOOKS */
|
||||
|
||||
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
|
||||
|
||||
// Construction/Destruction
|
||||
@@ -40,12 +44,24 @@ ACE_Dirent_Selector::close (void)
|
||||
#if defined (ACE_LACKS_STRUCT_DIR)
|
||||
// Only the lacking-struct-dir emulation allocates this. Native
|
||||
// scandir includes d_name in the dirent struct itself.
|
||||
#if defined (ACE_HAS_ALLOC_HOOKS)
|
||||
ACE_Allocator::instance()->free (this->namelist_[n_]->d_name);
|
||||
#else
|
||||
ACE_OS::free (this->namelist_[n_]->d_name);
|
||||
#endif /* ACE_HAS_ALLOC_HOOKS */
|
||||
#endif
|
||||
#if defined (ACE_HAS_ALLOC_HOOKS)
|
||||
ACE_Allocator::instance()->free (this->namelist_[n_]);
|
||||
#else
|
||||
ACE_OS::free (this->namelist_[n_]);
|
||||
#endif /* ACE_HAS_ALLOC_HOOKS */
|
||||
}
|
||||
|
||||
#if defined (ACE_HAS_ALLOC_HOOKS)
|
||||
ACE_Allocator::instance()->free (this->namelist_);
|
||||
#else
|
||||
ACE_OS::free (this->namelist_);
|
||||
#endif /* ACE_HAS_ALLOC_HOOKS */
|
||||
this->namelist_ = 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user