forked from cory/tildefriends
http request cleanup crash fix.
This commit is contained in:
parent
9d0f6ec155
commit
c32e1b9583
@ -175,7 +175,7 @@ static void _http_connection_destroy(tf_http_connection_t* connection, const cha
|
|||||||
if (connection->request)
|
if (connection->request)
|
||||||
{
|
{
|
||||||
_http_request_destroy(connection->request);
|
_http_request_destroy(connection->request);
|
||||||
if (connection->request->ref_count == 0)
|
if (connection->request && connection->request->ref_count == 0)
|
||||||
{
|
{
|
||||||
tf_free(connection->request);
|
tf_free(connection->request);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user