Exemplo n.º 1
0
void free_properties(ListBase *lb)
{
	bProperty *prop;
	
	while ( (prop = lb->first) ) {
		BLI_remlink(lb, prop);
		free_property(prop);
	}
}
Exemplo n.º 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));
}
Exemplo n.º 3
0
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);
}