Don't free homedir.

SVN revision: 26027
This commit is contained in:
sebastid 2006-09-22 19:59:45 +00:00 committed by sebastid
parent 8b26121817
commit 74609a32ae
2 changed files with 3 additions and 4 deletions

View File

@ -42,9 +42,9 @@ test "x$RPM_BUILD_ROOT" != "x/" && rm -rf $RPM_BUILD_ROOT
%files -f %{module_name}.lang
%defattr(-, root, root)
%doc AUTHORS ChangeLog COPYING* INSTALL NEWS README
if "%{module_name}" == "emu"
%if "%{module_name}" == "emu"
%{_bindir}/%{module_name}*
endif
%endif
%{_libdir}/enlightenment/modules/%{module_name}*
%changelog

View File

@ -226,11 +226,10 @@ char *photo_picture_infos_get(Picture *p)
void photo_picture_setbg_add(const char *name)
{
char buf[4096];
char *home;
const char *home;
home = e_user_homedir_get();
snprintf(buf, sizeof(buf), "%s/.e/e/backgrounds/%s.edj", home, name);
free(home);
photo->setbg_topurge = evas_list_append(photo->setbg_topurge, strdup(buf));
}