use delete for memory allocated with new, closes #16797
This commit is contained in:
parent
28ba8ed84e
commit
627b460378
@ -109,7 +109,7 @@ bool wxFileDropTarget::OnDrop(long x, long y, const void *data, size_t size )
|
||||
|
||||
bool ret = OnDropFiles( x, y, 1, files );
|
||||
|
||||
free( files );
|
||||
delete[] files;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user