Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
void declaration_unref(struct declaration *declaration)
{
void declaration_unref(struct declaration *declaration)
{
+ if (!declaration)
+ return;
if (!--declaration->ref)
declaration->declaration_free(declaration);
}
if (!--declaration->ref)
declaration->declaration_free(declaration);
}
void definition_unref(struct definition *definition)
{
void definition_unref(struct definition *definition)
{
+ if (!definition)
+ return;
if (!--definition->ref)
definition->declaration->definition_free(definition);
}
if (!--definition->ref)
definition->declaration->definition_free(definition);
}