mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-15 08:16:08 +00:00
chore(Deps/Acelite): Update to 6.5.10 (#3450)
This commit is contained in:
10
deps/acelite/ace/Framework_Component.cpp
vendored
10
deps/acelite/ace/Framework_Component.cpp
vendored
@@ -42,9 +42,15 @@ ACE_Framework_Repository::open (int size)
|
||||
|
||||
ACE_Framework_Component **temp = 0;
|
||||
|
||||
#if defined (ACE_HAS_ALLOC_HOOKS)
|
||||
ACE_ALLOCATOR_RETURN (temp,
|
||||
static_cast<ACE_Framework_Component**> (ACE_Allocator::instance()->malloc(sizeof(ACE_Framework_Component*) * size)),
|
||||
-1);
|
||||
#else
|
||||
ACE_NEW_RETURN (temp,
|
||||
ACE_Framework_Component *[size],
|
||||
-1);
|
||||
#endif /* ACE_HAS_ALLOC_HOOKS */
|
||||
|
||||
this->component_vector_ = temp;
|
||||
this->total_size_ = size;
|
||||
@@ -73,7 +79,11 @@ ACE_Framework_Repository::close (void)
|
||||
delete s;
|
||||
}
|
||||
|
||||
#if defined (ACE_HAS_ALLOC_HOOKS)
|
||||
ACE_Allocator::instance()->free(this->component_vector_);
|
||||
#else
|
||||
delete [] this->component_vector_;
|
||||
#endif /* ACE_HAS_ALLOC_HOOKS */
|
||||
this->component_vector_ = 0;
|
||||
this->current_size_ = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user