g_nop_create: destroy newly created provider in case of errors.
This commit is contained in:
parent
737afa3cec
commit
b3f05a2e9e
@ -213,7 +213,7 @@ fail:
|
||||
g_destroy_consumer(cp);
|
||||
}
|
||||
if (newpp != NULL)
|
||||
g_destroy_provider(pp);
|
||||
g_destroy_provider(newpp);
|
||||
if (gp != NULL) {
|
||||
if (gp->softc != NULL)
|
||||
g_free(gp->softc);
|
||||
|
Loading…
x
Reference in New Issue
Block a user