SWFDBLBitmap newSWFDBLBitmap(FILE* f) { SWFDBLBitmap dbl = newSWFDBLBitmap_fromInput(newSWFInput_file(f)); BLOCK(dbl)->dtor = (destroySWFBlockMethod) destroySWFDBLBitmap_andInputs; return dbl; }
SWFDBLBitmap newSWFDBLBitmap(FILE* f) { SWFInput input = newSWFInput_file(f); SWFDBLBitmap dbl = NULL; /* If newSWFInput_file() failed, return NULL to signify this */ if (NULL == input) return NULL; dbl = newSWFDBLBitmap_fromInput(input); /* If newSWFDBLBitmap_fromInput() failed, return NULL to signify this */ if (NULL == dbl) return NULL; BLOCK(dbl)->dtor = (destroySWFBlockMethod) destroySWFDBLBitmap_andInputs; return dbl; }