Create rarch_main_data_http_uninit

This commit is contained in:
twinaphex 2015-07-08 21:38:22 +02:00
parent dcd5a4fdcc
commit 3605b97c80
3 changed files with 10 additions and 0 deletions

View File

@ -89,6 +89,7 @@ void rarch_main_data_free(void)
data_runloop_t *runloop = rarch_main_data_get_ptr();
rarch_main_data_nbio_uninit();
rarch_main_data_http_uninit();
if (runloop)
free(runloop);

View File

@ -507,6 +507,13 @@ void *rarch_main_data_http_conn_get_handle(void)
return http->connection.handle;
}
void rarch_main_data_http_uninit(void)
{
if (http_ptr)
free(http_ptr);
http_ptr = NULL;
}
void rarch_main_data_http_init(void)
{
http_ptr = (http_handle_t*)calloc(1, sizeof(*http_ptr));

View File

@ -60,6 +60,8 @@ void *rarch_main_data_http_get_handle(void);
void *rarch_main_data_http_conn_get_handle(void);
void rarch_main_data_http_uninit(void);
void rarch_main_data_http_init(void);
void *rarch_main_data_http_get_ptr(void);