fix mem leak (#194)

This commit is contained in:
Hui Liu
2024-01-23 11:23:30 -08:00
committed by GitHub
parent a65c52bc71
commit e7dbd65315
+2
View File
@@ -90,8 +90,10 @@ rocDecDestroyVideoParser(RocdecVideoParser parser_handle) {
}
catch(const std::exception& e) {
roc_parser_handle->CaptureError(e.what());
delete roc_parser_handle;
ERR(e.what())
return ROCDEC_RUNTIME_ERROR;
}
delete roc_parser_handle;
return ret;
}