Clang-Tidy: Fix readability-delete-null-pointer warnings
Also enable it in the configuration.
This commit is contained in:
@@ -103,9 +103,7 @@ static int UnaryFunction1DEdgeNature___init__(BPy_UnaryFunction1DEdgeNature *sel
|
||||
|
||||
static void UnaryFunction1DEdgeNature___dealloc__(BPy_UnaryFunction1DEdgeNature *self)
|
||||
{
|
||||
if (self->uf1D_edgenature) {
|
||||
delete self->uf1D_edgenature;
|
||||
}
|
||||
delete self->uf1D_edgenature;
|
||||
UnaryFunction1D_Type.tp_dealloc((PyObject *)self);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user