Index: model_load_amf.c =================================================================== --- model_load_amf.c (revision 35988) +++ model_load_amf.c (revision 35989) @@ -145,6 +145,7 @@ for(n = mesh->children; n != NULL; n = n->next) { if (xmlStrcmp(n->name, (xmlChar *)"volume") == 0) { t = amf_load_volume(&verts, n); + if (t == NULL) continue; if (tail != NULL) { tail->next = t; tail = t; @@ -187,6 +188,7 @@ for(m = n->children; m != NULL; m = m->next) { if (xmlStrcmp(m->name, (xmlChar *)"mesh") == 0) { t = amf_load_mesh(m); + if (t == NULL) continue; if (tail != NULL) { tail->next = t; tail = t;