Skip to content

Commit 2b7e791

Browse files
playlist: fix crash after drag-drop from search window
1 parent 6ae6971 commit 2b7e791

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/playlist.c

+4
Original file line numberDiff line numberDiff line change
@@ -3886,6 +3886,10 @@ plt_copy_items (playlist_t *to, int iter, playlist_t *from, playItem_t *before,
38863886
if (items[i]) {
38873887
playItem_t *new_it = pl_item_alloc ();
38883888
pl_item_copy (new_it, items[i]);
3889+
new_it->next[PL_MAIN] = NULL;
3890+
new_it->prev[PL_MAIN] = NULL;
3891+
new_it->next[PL_SEARCH] = NULL;
3892+
new_it->prev[PL_SEARCH] = NULL;
38893893
pl_insert_item (after, new_it);
38903894
pl_item_unref (new_it);
38913895
after = new_it;

0 commit comments

Comments
 (0)