fix mem leak (#194)
Этот коммит содержится в:
1 родитель
a65c52bc71
Коммит
e7dbd65315
1 file changed
+2
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user