diff options
Diffstat (limited to 'spa/tools')
-rw-r--r-- | spa/tools/spa-inspect.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spa/tools/spa-inspect.c b/spa/tools/spa-inspect.c index a15d5893..81a26707 100644 --- a/spa/tools/spa-inspect.c +++ b/spa/tools/spa-inspect.c @@ -188,7 +188,8 @@ inspect_factory (const SpaHandleFactory *factory) else printf (" none\n"); - if ((res = factory->instantiate (factory, &handle)) < 0) { + handle = calloc (1, factory->size); + if ((res = factory->init (factory, handle)) < 0) { printf ("can't make factory instance: %d\n", res); return; } |