mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-20 11:48:30 -06:00
Remember to free strings, and don't look at .so files when libtool
always makes .la files for the modules. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5675 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
7fdfb02778
commit
20f3213049
@ -120,7 +120,9 @@ gnc_module_system_setup_load_path(void)
|
||||
gh_eval_str(evalstr);
|
||||
g_free(evalstr);
|
||||
}
|
||||
g_free(lp->data);
|
||||
}
|
||||
g_list_free(dirs);
|
||||
}
|
||||
|
||||
/*************************************************************
|
||||
@ -186,10 +188,8 @@ gnc_module_system_refresh(void)
|
||||
{
|
||||
namelen = strlen(dent->d_name);
|
||||
|
||||
/* is the file a .so shared lib? */
|
||||
if((namelen > 3) &&
|
||||
((!strncmp(dent->d_name + namelen - 3, ".so", 3)) ||
|
||||
(!strncmp(dent->d_name + namelen - 3, ".la", 3))))
|
||||
/* is the file a .la shared lib? */
|
||||
if((namelen > 3) && (!strncmp(dent->d_name + namelen - 3, ".la", 3)))
|
||||
{
|
||||
/* get the full path name, then dlopen the library and see
|
||||
* if it has the appropriate symbols to be a gnc_module */
|
||||
@ -206,7 +206,6 @@ gnc_module_system_refresh(void)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* free the search dir strings */
|
||||
for(current = search_dirs; current; current=current->next)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user