mirror of
https://github.com/libretro/RetroArch
synced 2025-01-17 01:16:25 +00:00
Create rarch_main_data_http_uninit
This commit is contained in:
parent
dcd5a4fdcc
commit
3605b97c80
@ -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);
|
||||
|
@ -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));
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user