(89239,0x1d9975ec0) malloc: *** error for object 0x16eeb2520: pointer being freed was not allocated

在C++的代码中 函数中使用了delete,会中止程序提示该信息,但是我仍然要使用该程序,所以就要设置为nullptr,不能使用delete。就可以解决程序中止的问题

xxx = nullptr;

你可能感兴趣的:(c++)