Clang-Tidy: Fix readability-delete-null-pointer warnings
Also enable it in the configuration.
This commit is contained in:
@@ -80,9 +80,7 @@ static int UnaryFunction0DId___init__(BPy_UnaryFunction0DId *self, PyObject *arg
|
||||
|
||||
static void UnaryFunction0DId___dealloc__(BPy_UnaryFunction0DId *self)
|
||||
{
|
||||
if (self->uf0D_id) {
|
||||
delete self->uf0D_id;
|
||||
}
|
||||
delete self->uf0D_id;
|
||||
UnaryFunction0D_Type.tp_dealloc((PyObject *)self);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user