Checking if null pointer seems to solve the crash.
Code:
void
AMF_Reset(AMFObject *obj)
{
int n;
for (n = 0; n < obj->o_num; n++)
{
AMFProp_Reset(&obj->o_props[n]);
}
+ //check if null pointer
+ if(obj->o_props)
free(obj->o_props);
obj->o_props = NULL;
obj->o_num = 0;
}
EDITED:
Doesn't Solve it. The culprit seems to be somewhere else