mistake in comparing pointers. (causing memfree prints)
This commit is contained in:
@@ -996,7 +996,7 @@ int RNA_property_collection_lookup_string(PointerRNA *ptr, PropertyRNA *prop, co
|
||||
found= 1;
|
||||
}
|
||||
|
||||
if(nameptr != name);
|
||||
if ((char *)&name != nameptr)
|
||||
MEM_freeN(nameptr);
|
||||
|
||||
if(found)
|
||||
|
||||
@@ -523,7 +523,7 @@ PyObject *pyrna_prop_keys(BPy_PropertyRNA *self)
|
||||
Py_DECREF(item);
|
||||
/* done */
|
||||
|
||||
if (name != nameptr)
|
||||
if ((char *)&name != nameptr)
|
||||
MEM_freeN(nameptr);
|
||||
}
|
||||
}
|
||||
@@ -559,7 +559,7 @@ PyObject *pyrna_prop_items(BPy_PropertyRNA *self)
|
||||
Py_DECREF(item);
|
||||
/* done */
|
||||
|
||||
if (name != nameptr)
|
||||
if ((char *)&name != nameptr)
|
||||
MEM_freeN(nameptr);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user