コード例 #1
0
ファイル: schema.c プロジェクト: thirumg/Avro.NET
void avro_schema_decref(avro_schema_t schema)
{
	if (schema && schema->refcount != (unsigned int)-1
	    && --schema->refcount == 0) {
		avro_schema_free(schema);
	}
}
コード例 #2
0
ファイル: schema.c プロジェクト: AlexChen12/avro
int
avro_schema_decref(avro_schema_t schema)
{
	if (schema && avro_refcount_dec(&schema->refcount)) {
		avro_schema_free(schema);
		return 0;
	}
	return 1;
}