oops - fix extra file src string copy to internal

SVN revision: 25214
This commit is contained in:
Carsten Haitzler 2006-08-30 15:17:04 +00:00
parent b0452a085a
commit 1b7f1993ef
1 changed files with 2 additions and 0 deletions

View File

@ -378,6 +378,7 @@ e_fm2_config_set(Evas_Object *obj, E_Fm2_Config *cfg)
sd->config = E_NEW(E_Fm2_Config, 1);
if (!sd->config) return;
memcpy(sd->config, cfg, sizeof(E_Fm2_Config));
if (cfg->view.extra_file_source) sd->config->view.extra_file_source = evas_stringshare_add(cfg->view.extra_file_source);
if (cfg->theme.background) sd->config->theme.background = evas_stringshare_add(cfg->theme.background);
if (cfg->theme.frame) sd->config->theme.frame = evas_stringshare_add(cfg->theme.frame);
if (cfg->theme.icons) sd->config->theme.icons = evas_stringshare_add(cfg->theme.icons);
@ -1221,6 +1222,7 @@ _e_fm2_regions_eval(Evas_Object *obj)
static void
_e_fm2_config_free(E_Fm2_Config *cfg)
{
if (cfg->view.extra_file_source) evas_stringshare_del(cfg->view.extra_file_source);
if (cfg->theme.background) evas_stringshare_del(cfg->theme.background);
if (cfg->theme.frame) evas_stringshare_del(cfg->theme.frame);
if (cfg->theme.icons) evas_stringshare_del(cfg->theme.icons);