eo2: eo2_add_internal_end() return NULL if do_error is set

This commit is contained in:
Jérémy Zurcher 2013-11-08 00:51:22 +01:00 committed by Tom Hacohen
parent 9c1856bf82
commit 541cf25723
1 changed files with 1 additions and 1 deletions

View File

@ -720,7 +720,7 @@ eo2_add_internal_end(const char *file, int line, const Eo *eo_id)
return NULL;
}
if (!fptr->obj->condtor_done)
if (!fptr->obj->condtor_done || fptr->obj->do_error)
{
ERR("in %s:%d: Object of class '%s' - Not all of the object constructors have been executed.",
file, line, fptr->cur_klass->desc->name);