output: Fix double free.

This commit is contained in:
Bert Vermeulen 2014-08-18 23:55:39 +02:00
parent 499c85dce5
commit 9fc318d9ef
1 changed files with 0 additions and 1 deletions

View File

@ -274,7 +274,6 @@ SR_API const struct sr_output *sr_output_new(const struct sr_output_module *o,
}
if (op->module->init && op->module->init(op, new_opts) != SR_OK) {
g_hash_table_destroy(new_opts);
g_free(op);
op = NULL;
}