+2004-02-19 Thomas Vander Stichele <thomas at apestaart dot org>
+
+ * tools/gst-run.c: (get_candidates), (main): some fixes from jdahlin
+
2004-02-18 kost@imn.htwk-leipzig.de
reviewed by: David Schleef <ds@schleef.org>
/* get all dirs from the path and prepend with given dir */
path = g_strdup_printf ("%s%c%s",
- dir, G_SEARCHPATH_SEPARATOR, getenv ("PATH"));
+ dir, G_SEARCHPATH_SEPARATOR, g_getenv ("PATH"));
dirs = g_strsplit (path, G_SEARCHPATH_SEPARATOR_S, 0);
g_free (path);
ctx = poptGetContext ("gst-run", argc, (const char **) argv, options, 0);
poptReadDefaultConfig (ctx, TRUE);
while ((nextopt = poptGetNextOpt (ctx)) > 0)
- ;
+ /* keep looping to parse */;
argc = poptStrippedArgv (ctx, argc, argv);
argv[argc] = NULL;
binary = g_strdup_printf ("%s-%s", base, highest);
}
+ g_free (base);
+
path = g_build_filename (dir, binary, NULL);
g_free (binary);
if (_arg_list_mm)
{
g_hash_table_foreach (candidates, (GHFunc) hash_print_key, NULL);
+ g_hash_table_destroy (candidates);
return 0;
}