*/
struct Efreet_Menu_Move
{
- char *old_name; /**< The menu path to move from */
- char *new_name; /**< The menu path to move too */
+ const char *old_name; /**< The menu path to move from */
+ const char *new_name; /**< The menu path to move too */
};
/**
#endif
move = efreet_menu_move_new();
- move->old_name = strdup(xml->text);
+ move->old_name = eina_stringshare_add(xml->text);
parent->current_move = move;
parent->moves = eina_list_append(parent->moves, move);
return 0;
}
- parent->current_move->new_name = strdup(xml->text);
+ parent->current_move->new_name = eina_stringshare_add(xml->text);
parent->current_move = NULL;
return 1;
{
if (!move) return;
- IF_FREE(move->old_name);
- IF_FREE(move->new_name);
+ IF_RELEASE(move->old_name);
+ IF_RELEASE(move->new_name);
FREE(move);
}