Example #1
0
void free_properties(ListBase *lb)
{
	bProperty *prop;
	
	while ( (prop = lb->first) ) {
		BLI_remlink(lb, prop);
		free_property(prop);
	}
}
Example #2
0
void set_ob_property(Object *ob, bProperty *propc)
{
	bProperty *prop;
	prop = get_ob_property(ob, propc->name);
	if (prop) {
		free_property(prop);
		BLI_remlink(&ob->prop, prop);
	}
	BLI_addtail(&ob->prop, copy_property(propc));
}
static void free_node(struct device_node *np)
{
	struct property *next;
	struct property *prop;

	next = np->properties;
	while (next) {
		prop = next;
		next = prop->next;
		free_property(prop);
	}
	of_node_put(np->parent);
	kfree(np->full_name);
	kfree(np);
}