=================================================================
==6967==ERROR: AddressSanitizer: new-delete-type-mismatch on 0x607000000250 in thread T0:
object passed to delete has wrong type:
size of the allocated type: 72 bytes;
size of the deallocated type: 64 bytes.
0 0x7f4ba3eb722f in operator delete(void*, unsigned long) ../../../../src/libsanitizer/asan/asan_new_delete.cpp:172
#1 0x558a6ea3c39e in EntityKilledE::destroy() src/Events.cpp:20
#2 0x558a6ea42371 in Screen::do_screen(Room*) src/Screen.cpp:75
#3 0x558a6ea453fd in main src/main.cpp:76
#4 0x7f4ba3629d8f (/lib/x86_64-linux-gnu/libc.so.6+0x29d8f)
#5 0x7f4ba3629e3f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29e3f)
#6 0x558a6ea3a844 in _start (/home/saad/Desktop/Progetto-Programmazione/main+0x3844)
0x607000000250 is located 0 bytes inside of 72-byte region [0x607000000250,0x607000000298)
allocated by thread T0 here:
0 0x7f4ba3eb61c7 in operator new(unsigned long) ../../../../src/libsanitizer/asan/asan_new_delete.cpp:99
#1 0x558a6ea45ca1 in __static_initialization_and_destruction_0 src/main.cpp:40
#2 0x558a6ea465a4 in _GLOBAL__sub_I_dummy_map src/main.cpp:137
#3 0x7f4ba3629eba in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29eba)
SUMMARY: AddressSanitizer: new-delete-type-mismatch ../../../../src/libsanitizer/asan/asan_new_delete.cpp:172 in operator delete(void*, unsigned long)
==6967==HINT: if you don't care about these errors you may set ASAN_OPTIONS=new_delete_type_mismatch=0
==6967==ABORTING
================================================================= ==6967==ERROR: AddressSanitizer: new-delete-type-mismatch on 0x607000000250 in thread T0: object passed to delete has wrong type: size of the allocated type: 72 bytes; size of the deallocated type: 64 bytes.
0 0x7f4ba3eb722f in operator delete(void*, unsigned long) ../../../../src/libsanitizer/asan/asan_new_delete.cpp:172
0x607000000250 is located 0 bytes inside of 72-byte region [0x607000000250,0x607000000298) allocated by thread T0 here:
0 0x7f4ba3eb61c7 in operator new(unsigned long) ../../../../src/libsanitizer/asan/asan_new_delete.cpp:99
SUMMARY: AddressSanitizer: new-delete-type-mismatch ../../../../src/libsanitizer/asan/asan_new_delete.cpp:172 in operator delete(void*, unsigned long) ==6967==HINT: if you don't care about these errors you may set ASAN_OPTIONS=new_delete_type_mismatch=0 ==6967==ABORTING