input/{soup,curl}: free unused postponed_error
Fix memory leak.
This commit is contained in:
parent
65dfd90141
commit
6f655eb9b9
@ -766,6 +766,9 @@ input_curl_free(struct input_curl *c)
|
||||
g_mutex_free(c->mutex);
|
||||
g_cond_free(c->cond);
|
||||
|
||||
if (c->postponed_error != NULL)
|
||||
g_error_free(c->postponed_error);
|
||||
|
||||
g_free(c->url);
|
||||
input_stream_deinit(&c->base);
|
||||
g_free(c);
|
||||
@ -1289,6 +1292,8 @@ input_curl_open(const char *url, GError **error_r)
|
||||
icy_clear(&c->icy_metadata);
|
||||
c->tag = NULL;
|
||||
|
||||
c->postponed_error = NULL;
|
||||
|
||||
#if LIBCURL_VERSION_NUM >= 0x071200
|
||||
c->paused = false;
|
||||
#endif
|
||||
|
@ -313,6 +313,9 @@ input_soup_close(struct input_stream *is)
|
||||
soup_buffer_free(buffer);
|
||||
g_queue_free(s->buffers);
|
||||
|
||||
if (s->postponed_error != NULL)
|
||||
g_error_free(s->postponed_error);
|
||||
|
||||
input_stream_deinit(&s->base);
|
||||
g_free(s);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user