Need to actually set the pool fail callback when allocating a pool.

This commit is contained in:
Aaron Giles 2008-01-19 20:38:14 +00:00
parent 797d75363b
commit 5254f279d4

View File

@ -143,6 +143,9 @@ object_pool *pool_alloc(void (*fail)(const char *message))
return NULL;
memset(pool, 0, sizeof(*pool));
/* set the failure handler */
pool->fail = fail;
/* register the built-in types */
pool_type_register(pool, OBJTYPE_MEMORY, "Memory", memory_destruct);