mirror of
https://github.com/k4yt3x/video2x.git
synced 2025-01-15 04:08:52 +00:00
style(*): set deleted object pointers to nullptr
Signed-off-by: k4yt3x <i@k4yt3x.com>
This commit is contained in:
parent
1edec941c7
commit
9e27aed644
@ -33,6 +33,7 @@ FilterRealcugan::FilterRealcugan(
|
|||||||
|
|
||||||
FilterRealcugan::~FilterRealcugan() {
|
FilterRealcugan::~FilterRealcugan() {
|
||||||
delete realcugan_;
|
delete realcugan_;
|
||||||
|
realcugan_ = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
int FilterRealcugan::init(AVCodecContext* dec_ctx, AVCodecContext* enc_ctx, AVBufferRef*) {
|
int FilterRealcugan::init(AVCodecContext* dec_ctx, AVCodecContext* enc_ctx, AVBufferRef*) {
|
||||||
|
@ -27,6 +27,7 @@ FilterRealesrgan::FilterRealesrgan(
|
|||||||
|
|
||||||
FilterRealesrgan::~FilterRealesrgan() {
|
FilterRealesrgan::~FilterRealesrgan() {
|
||||||
delete realesrgan_;
|
delete realesrgan_;
|
||||||
|
realesrgan_ = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
int FilterRealesrgan::init(AVCodecContext* dec_ctx, AVCodecContext* enc_ctx, AVBufferRef*) {
|
int FilterRealesrgan::init(AVCodecContext* dec_ctx, AVCodecContext* enc_ctx, AVBufferRef*) {
|
||||||
|
@ -30,6 +30,7 @@ InterpolatorRIFE::InterpolatorRIFE(
|
|||||||
|
|
||||||
InterpolatorRIFE::~InterpolatorRIFE() {
|
InterpolatorRIFE::~InterpolatorRIFE() {
|
||||||
delete rife_;
|
delete rife_;
|
||||||
|
rife_ = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
int InterpolatorRIFE::init(AVCodecContext* dec_ctx, AVCodecContext* enc_ctx, AVBufferRef*) {
|
int InterpolatorRIFE::init(AVCodecContext* dec_ctx, AVCodecContext* enc_ctx, AVBufferRef*) {
|
||||||
|
Loading…
Reference in New Issue
Block a user