Do not leak plugin dirs list

master
Yevgen Muntyan 2006-10-14 14:03:19 -05:00
parent 511fdb0e83
commit deb45535ca
1 changed files with 2 additions and 1 deletions

View File

@ -97,13 +97,14 @@ static void
sys_path_add_plugin_dirs (void)
{
char **d;
char **dirs = moo_plugin_get_dirs ();
char **dirs;
static gboolean been_here = FALSE;
if (been_here)
return;
been_here = TRUE;
dirs = moo_plugin_get_dirs ();
for (d = dirs; d && *d; ++d)
{