Remove unnecessary NULL check
SWIG_remove() calls either free() or delete, both of which handle a NULL pointer.
This commit is contained in:
parent
979d48b0b4
commit
5156ad4f7b
1 changed files with 1 additions and 1 deletions
|
|
@ -135,7 +135,7 @@ static void print_creation_free_wrapper(int item_index) {
|
|||
Printf(s_header, " obj = php_fetch_object(object);\n\n");
|
||||
|
||||
if (need_free) {
|
||||
Printf(s_header, " if(obj->ptr && obj->newobject)\n");
|
||||
Printf(s_header, " if(obj->newobject)\n");
|
||||
Printf(s_header, " SWIG_remove((%s *)obj->ptr);\n",class_type);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue