g_nop_create: destroy newly created provider in case of errors.

This commit is contained in:
Max Khon 2004-09-16 15:28:48 +00:00
parent 737afa3cec
commit b3f05a2e9e

View File

@ -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);