Ecore con: Fix constructing (the whole object was broken).

We were constructing some things too late which caused url setting to not
work at all.
This commit is contained in:
Tom Hacohen 2014-08-29 11:41:21 +01:00
parent 84a6b654f6
commit 0f9627c363
1 changed files with 8 additions and 7 deletions

View File

@ -446,6 +446,14 @@ _ecore_con_url_eo_base_constructor(Ecore_Con_Url *url_obj, Ecore_Con_Url_Data *u
if (!_init_count) eo_error_set(url_obj);
if (!_c_init()) eo_error_set(url_obj);
url_con->curl_easy = _c->curl_easy_init();
if (!url_con->curl_easy)
{
eo_error_set(url_obj);
return;
}
}
EOLIAN static Eo *
@ -455,13 +463,6 @@ _ecore_con_url_eo_base_finalize(Ecore_Con_Url *url_obj, Ecore_Con_Url_Data *url_
url_con->write_fd = -1;
url_con->curl_easy = _c->curl_easy_init();
if (!url_con->curl_easy)
{
eo_del(url_obj);
return NULL;
}
if (!url_con->url)
{
ecore_con_url_free(url_obj);