welcome: fix issue with template creation.
This fixes potential crash due to invalid template data and also fixes an erroneous URI for hello-gui.
This commit is contained in:
parent
273384d916
commit
383573fd0a
|
@ -5,7 +5,7 @@ collections {
|
|||
|
||||
data {
|
||||
item: "title" "C EFL Beta Hello World";
|
||||
item: "path" "tutorials/c/hellogui/";
|
||||
item: "path" "tutorial/c/hello-gui/";
|
||||
item: "description"
|
||||
"Hello World using the EFL Beta APIs";
|
||||
}
|
||||
|
|
|
@ -153,6 +153,9 @@ _edi_create_free_data()
|
|||
create = _edi_create_data;
|
||||
_edi_create_data = NULL;
|
||||
|
||||
if (!create)
|
||||
return;
|
||||
|
||||
if (create->temp && ecore_file_exists(create->temp))
|
||||
ecore_file_recursive_rm(create->temp);
|
||||
|
||||
|
@ -288,8 +291,6 @@ _edi_create_error_cb(void *data, Eio_File *handler EINA_UNUSED, int error)
|
|||
|
||||
create = (Edi_Create *) data;
|
||||
ERR("copy error: [%s]\n", strerror(error));
|
||||
if (create->callback)
|
||||
create->callback(create->path, EINA_FALSE);
|
||||
|
||||
_edi_create_free_data();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue