Commit 2909c5c3 authored by Rémi Duraffort's avatar Rémi Duraffort

Protect against bad use after a vlc_dictionary_clear.

parent 559e1473
...@@ -450,6 +450,7 @@ static inline void vlc_dictionary_clear( vlc_dictionary_t * p_dict ) ...@@ -450,6 +450,7 @@ static inline void vlc_dictionary_clear( vlc_dictionary_t * p_dict )
} }
} }
free( p_dict->p_entries ); free( p_dict->p_entries );
p_dict->p_entries = NULL;
} }
p_dict->i_size = 0; p_dict->i_size = 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment