Skip to content

Commit

Permalink
Fix issue bdejong#28
Browse files Browse the repository at this point in the history
Don't use delete to free memory allocated with _aligned_malloc.
  • Loading branch information
dozius committed Dec 29, 2016
1 parent 62eed35 commit da44e85
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Bouncy/Multitap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ Multitap::Multitap(unsigned long initialSize)
Multitap::~Multitap()
{
if(buffer)
delete buffer;

_aligned_free(buffer);
_aligned_free(amp);
_aligned_free(delay);
_aligned_free(delayfpu);
Expand Down
6 changes: 1 addition & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@ enable_testing()

#add_subdirectory(AnechoicRoomSimulator)
#add_subdirectory(Bitmurderer)

if(APPLE)
add_subdirectory(Bouncy)
endif()

add_subdirectory(Bouncy)
add_subdirectory(CrazyIvan)
#add_subdirectory(Cyanide2)
add_subdirectory(H2O)
Expand Down

0 comments on commit da44e85

Please sign in to comment.