input_stream: added function input_stream_deinit()
All close() implementations must call this method.
This commit is contained in:
@@ -195,6 +195,7 @@ input_curl_free(struct input_curl *c)
|
||||
g_queue_free(c->buffers);
|
||||
|
||||
g_free(c->url);
|
||||
input_stream_deinit(&c->base);
|
||||
g_free(c);
|
||||
}
|
||||
|
||||
|
@@ -136,6 +136,7 @@ input_file_close(struct input_stream *is)
|
||||
struct file_input_stream *fis = (struct file_input_stream *)is;
|
||||
|
||||
close(fis->fd);
|
||||
input_stream_deinit(&fis->base);
|
||||
g_free(fis);
|
||||
}
|
||||
|
||||
|
@@ -103,6 +103,7 @@ input_mms_close(struct input_stream *is)
|
||||
struct input_mms *m = (struct input_mms *)is;
|
||||
|
||||
mmsx_close(m->mms);
|
||||
input_stream_deinit(&m->base);
|
||||
g_free(m);
|
||||
}
|
||||
|
||||
|
@@ -98,6 +98,7 @@ input_rewind_close(struct input_stream *is)
|
||||
|
||||
input_stream_close(r->input);
|
||||
|
||||
input_stream_deinit(&r->base);
|
||||
g_free(r);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user