]> git.sesse.net Git - vlc/blobdiff - src/playlist/engine.c
src/playlist: Fix a rare memleak that could happen when the interaction is created...
[vlc] / src / playlist / engine.c
index 05858a80a186469cc514a0303edf7efeb5f1bba3..e3af6b8f9c4dfa131bfadbfbb4ac8707b876b40e 100644 (file)
@@ -150,6 +150,12 @@ playlist_t * playlist_Create( vlc_object_t *p_parent )
     p_playlist->i_sort = SORT_ID;
     p_playlist->i_order = ORDER_NORMAL;
 
+
+    /* Interaction
+     * Init the interaction here, as playlist_MLLoad could trigger
+     * interaction init */
+    p_playlist->p_interaction = NULL;
+
     b_save = p_playlist->b_auto_preparse;
     p_playlist->b_auto_preparse = VLC_FALSE;
     playlist_MLLoad( p_playlist );