diff options
author | Petri Hintukainen <phintuka@users.sourceforge.net> | 2011-11-24 11:48:17 +0200 |
---|---|---|
committer | Petri Hintukainen <phintuka@users.sourceforge.net> | 2011-11-24 11:48:17 +0200 |
commit | 5fbbca157c2de145cc1b096bc4fd205612829b83 (patch) | |
tree | c34408ac51f6ec218feaefa334babb2f2ab1a3e6 /src/input/input_smb.c | |
parent | 705c67e259db0f0302850d1a999df07c71a35342 (diff) | |
parent | 82d5b54109a8409df48f0b9a02add1dcce01780b (diff) | |
download | xine-lib-5fbbca157c2de145cc1b096bc4fd205612829b83.tar.gz xine-lib-5fbbca157c2de145cc1b096bc4fd205612829b83.tar.bz2 |
Merge
Diffstat (limited to 'src/input/input_smb.c')
-rw-r--r-- | src/input/input_smb.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/input/input_smb.c b/src/input/input_smb.c index d82ab0aa7..e3ad51eb1 100644 --- a/src/input/input_smb.c +++ b/src/input/input_smb.c @@ -356,7 +356,7 @@ static xine_mrl_t **smb_class_get_dir (input_class_t *this_gen, (this->mrls_allocated_entries+1) * sizeof(xine_mrl_t*)); this->mrls[num_files] = calloc(1, sizeof(xine_mrl_t)); }else - memset(this->mrls[num_files], 0, sizeof(xine_mrl_t)); + MRL_ZERO(this->mrls[num_files]); MRL_DUPLICATE(&dir_files[i], this->mrls[num_files]); @@ -373,7 +373,7 @@ static xine_mrl_t **smb_class_get_dir (input_class_t *this_gen, (this->mrls_allocated_entries+1) * sizeof(xine_mrl_t*)); this->mrls[num_files] = calloc(1, sizeof(xine_mrl_t)); }else - memset(this->mrls[num_files], 0, sizeof(xine_mrl_t)); + MRL_ZERO(this->mrls[num_files]); MRL_DUPLICATE(&norm_files[i], this->mrls[num_files]); @@ -456,6 +456,12 @@ smb_class_dispose (input_class_t *this_gen) { smb_input_class_t *this = (smb_input_class_t *) this_gen; + while(this->mrls_allocated_entries) { + MRL_ZERO(this->mrls[this->mrls_allocated_entries - 1]); + free(this->mrls[this->mrls_allocated_entries--]); + } + free(this->mrls); + free (this); } |