fixed seg-fault and mem leak

Original commit message from CVS:
fixed seg-fault and mem leak
This commit is contained in:
Stefan Kost 2004-08-31 14:41:37 +00:00
parent 436a489e65
commit cd62d993a3

View file

@ -81,7 +81,7 @@ static void
fCallbackFunction (pcFilename, pvPluginHandle, fDescriptorFunction);
} else {
/* It was a library, but not a LADSPA one. Unload it. */
dlclose (pcFilename);
dlclose (pvPluginHandle);
}
}
free (pcFilename);
@ -131,6 +131,7 @@ LADSPAPluginSearch (LADSPAPluginSearchCallbackFunction fCallbackFunction)
if (*pcStart == ':')
pcStart++;
}
g_free (pcLADSPAPath);
}
/*****************************************************************************/