The function of createOpenCLSymbolsOperatorSingleInstance() is:
OpenCLSymbolsOperator* OpenCLSymbolsOperator::createOpenCLSymbolsOperatorSingleInstance() {
static std::once_flag sFlagInitSymbols;
static OpenCLSymbolsOperator* gInstance = nullptr;
std::call_once(sFlagInitSymbols, [&]() {
gInstance = new OpenCLSymbolsOperator;
});
return gInstance;
}
I don’t find the place to delete the gInstance handle in MNN,how to solve it?