Patch from WooHyun Jung to fix small bug in elm_main:

"exe" is used just after "free(exe)".



SVN revision: 55743
This commit is contained in:
Christopher Michael 2010-12-24 09:58:20 +00:00
parent 2a5caa915c
commit bdc406c4e0
1 changed files with 2 additions and 1 deletions

View File

@ -755,7 +755,6 @@ elm_quicklaunch_prepare(int argc __UNUSED__,
return EINA_FALSE;
}
INF("dlopen('%s') = %p", exe, qr_handle);
free(exe);
qr_main = dlsym(qr_handle, "elm_main");
INF("dlsym(%p, 'elm_main') = %p", qr_handle, qr_main);
if (!qr_main)
@ -763,8 +762,10 @@ elm_quicklaunch_prepare(int argc __UNUSED__,
WRN("not quicklauncher capable: no elm_main in '%s'", exe);
dlclose(qr_handle);
qr_handle = NULL;
free(exe);
return EINA_FALSE;
}
free(exe);
return EINA_TRUE;
#else
return EINA_FALSE;