summaryrefslogtreecommitdiff
path: root/src/input/input_mms.c
diff options
context:
space:
mode:
authorEwald Snel <esnel@users.sourceforge.net>2002-04-23 13:30:42 +0000
committerEwald Snel <esnel@users.sourceforge.net>2002-04-23 13:30:42 +0000
commit2238f0536fa7bb4ad6d59ff38ed040dc4d81ff64 (patch)
tree41c61dbec58d9c610019cf4dade18416c6076d91 /src/input/input_mms.c
parent8cab88a56f0c9fcaa14ea197ad8a95c58024abfc (diff)
downloadxine-lib-2238f0536fa7bb4ad6d59ff38ed040dc4d81ff64.tar.gz
xine-lib-2238f0536fa7bb4ad6d59ff38ed040dc4d81ff64.tar.bz2
Fix memory leaks by disposing input, demux and decoder plugins at exit
- add dispose() function to all decoder plugin structures CVS patchset: 1763 CVS date: 2002/04/23 13:30:42
Diffstat (limited to 'src/input/input_mms.c')
-rw-r--r--src/input/input_mms.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/input/input_mms.c b/src/input/input_mms.c
index a323e9d1c..a4888d4cb 100644
--- a/src/input/input_mms.c
+++ b/src/input/input_mms.c
@@ -308,6 +308,10 @@ static int mms_plugin_get_optional_data (input_plugin_t *this_gen,
return INPUT_OPTIONAL_UNSUPPORTED;
}
+static int mms_plugin_dispose (input_plugin_t *this_gen ) {
+ free (this_gen);
+}
+
input_plugin_t *init_input_plugin (int iface, xine_t *xine) {
@@ -345,6 +349,7 @@ input_plugin_t *init_input_plugin (int iface, xine_t *xine) {
this->input_plugin.get_identifier = mms_plugin_get_identifier;
this->input_plugin.get_autoplay_list = NULL;
this->input_plugin.get_optional_data = mms_plugin_get_optional_data;
+ this->input_plugin.dispose = mms_plugin_dispose;
this->input_plugin.is_branch_possible= NULL;
this->mrl = NULL;