summaryrefslogtreecommitdiffstats
path: root/ext/ladspa
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sourceforge.net>2004-08-31 14:41:37 +0000
committerStefan Kost <ensonic@users.sourceforge.net>2004-08-31 14:41:37 +0000
commit3d1a483151f9539a71acf395aaa1b33b034fc270 (patch)
tree42ba6ac3d6698d95a4b99a972a6297c8130c2d8f /ext/ladspa
parent5638dbb982f090576ec77f37b14b65c9139ac269 (diff)
downloadgst-plugins-bad-3d1a483151f9539a71acf395aaa1b33b034fc270.tar.gz
gst-plugins-bad-3d1a483151f9539a71acf395aaa1b33b034fc270.tar.bz2
gst-plugins-bad-3d1a483151f9539a71acf395aaa1b33b034fc270.zip
fixed seg-fault and mem leak
Original commit message from CVS: fixed seg-fault and mem leak
Diffstat (limited to 'ext/ladspa')
-rw-r--r--ext/ladspa/search.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/ladspa/search.c b/ext/ladspa/search.c
index 0e481a36..2d97ab10 100644
--- a/ext/ladspa/search.c
+++ b/ext/ladspa/search.c
@@ -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);
}
/*****************************************************************************/