]> git.sesse.net Git - vlc/blobdiff - include/vlc_arrays.h
Protect against bad use after a vlc_dictionary_clear.
[vlc] / include / vlc_arrays.h
index a121000f2d3705ade9f0b18fd62f8f6a7472f83e..35cc0ca492f70d2662b88e6ebbec14148378717b 100644 (file)
@@ -450,6 +450,7 @@ static inline void vlc_dictionary_clear( vlc_dictionary_t * p_dict )
             }
         }
         free( p_dict->p_entries );
+        p_dict->p_entries = NULL;
     }
     p_dict->i_size = 0;
 }