- freeing strings returned by RNA struct functions in RNA_parameter_list_free

Unit tests:
- check that BKE_export_image actually creates a file. This test is becoming dangerous: it creates and deletes files under /tmp.

Having written this complicated test function I now realize it's much easier to write tests in a scripted language, which gives more 
freedom in expressions and need not be compiled.
This commit is contained in:
2009-07-23 15:57:30 +00:00
parent c96041628e
commit d8f4ab2d59
5 changed files with 129 additions and 55 deletions

View File

@@ -1844,7 +1844,8 @@ PyObject *pyrna_param_to_py(PointerRNA *ptr, PropertyRNA *prop, void *data)
break;
case PROP_STRING:
{
ret = PyUnicode_FromString( *(char**)data );
char *ptr = *(char**)data;
ret = ptr ? PyUnicode_FromString( ptr ) : Py_None;
break;
}
case PROP_ENUM: