style(*): set deleted object pointers to nullptr

Signed-off-by: k4yt3x <i@k4yt3x.com>
This commit is contained in:
k4yt3x 2025-01-09 00:00:00 +00:00
parent 1edec941c7
commit 9e27aed644
No known key found for this signature in database
3 changed files with 3 additions and 0 deletions

View File

@ -33,6 +33,7 @@ FilterRealcugan::FilterRealcugan(
FilterRealcugan::~FilterRealcugan() {
delete realcugan_;
realcugan_ = nullptr;
}
int FilterRealcugan::init(AVCodecContext* dec_ctx, AVCodecContext* enc_ctx, AVBufferRef*) {

View File

@ -27,6 +27,7 @@ FilterRealesrgan::FilterRealesrgan(
FilterRealesrgan::~FilterRealesrgan() {
delete realesrgan_;
realesrgan_ = nullptr;
}
int FilterRealesrgan::init(AVCodecContext* dec_ctx, AVCodecContext* enc_ctx, AVBufferRef*) {

View File

@ -30,6 +30,7 @@ InterpolatorRIFE::InterpolatorRIFE(
InterpolatorRIFE::~InterpolatorRIFE() {
delete rife_;
rife_ = nullptr;
}
int InterpolatorRIFE::init(AVCodecContext* dec_ctx, AVCodecContext* enc_ctx, AVBufferRef*) {