efl_net_dialer_http: Do curl shutdown in destructor

Summary:
curl_global_init() in efl_net_dialer_http constructor.
curl_global_cleanup() need to call when it destructor.

Without this, module and libcurl internal data are leaking.

Reviewers: Hermet, raster

Reviewed By: raster

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D12259
This commit is contained in:
Woochanlee 2021-04-28 10:45:26 +01:00 committed by Carsten Haitzler (Rasterman)
parent 215e9ca9b3
commit 74832777f4
1 changed files with 2 additions and 0 deletions

View File

@ -1198,6 +1198,8 @@ _efl_net_dialer_http_efl_object_destructor(Eo *o, Efl_Net_Dialer_Http_Data *pd)
_secure_free(&pd->authentication.password);
eina_stringshare_replace(&pd->ssl.ca, NULL);
eina_stringshare_replace(&pd->ssl.crl, NULL);
_c_shutdown();
}
static void