style(*): remove redundant nullptr checks on object deletion (#1288)

Signed-off-by: k4yt3x <i@k4yt3x.com>
This commit is contained in:
k4yt3x
2025-01-08 00:00:00 +00:00
parent 8ffe1b84bd
commit e7096887ed
3 changed files with 3 additions and 12 deletions

View File

@@ -26,10 +26,7 @@ FilterRealesrgan::FilterRealesrgan(
model_name_(std::move(model_name)) {}
FilterRealesrgan::~FilterRealesrgan() {
if (realesrgan_) {
delete realesrgan_;
realesrgan_ = nullptr;
}
delete realesrgan_;
}
int FilterRealesrgan::init(AVCodecContext* dec_ctx, AVCodecContext* enc_ctx, AVBufferRef*) {