pluginloader: don't leak entries for blacklisted files
authorStefan Kost <ensonic@users.sf.net>
Thu, 9 Sep 2010 19:24:38 +0000 (22:24 +0300)
committerStefan Kost <ensonic@users.sf.net>
Thu, 9 Sep 2010 19:24:38 +0000 (22:24 +0300)
gst/gstpluginloader.c

index dacdd0b..90f1d3d 100644 (file)
@@ -270,6 +270,8 @@ restart:
       l->got_plugin_details = TRUE;
       /* Now remove this crashy plugin from the head of the list */
       l->pending_plugins = g_list_delete_link (cur, cur);
+      g_free (entry->filename);
+      g_slice_free (PendingPluginEntry, entry);
       if (l->pending_plugins == NULL)
         l->pending_plugins_tail = NULL;
       if (!gst_plugin_loader_spawn (l))