Skip to content

Commit

Permalink
playlist: fix crash after drag-drop from search window
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksiy-Yakovenko committed Nov 24, 2024
1 parent 6ae6971 commit 2b7e791
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/playlist.c
Original file line number Diff line number Diff line change
Expand Up @@ -3886,6 +3886,10 @@ plt_copy_items (playlist_t *to, int iter, playlist_t *from, playItem_t *before,
if (items[i]) {
playItem_t *new_it = pl_item_alloc ();
pl_item_copy (new_it, items[i]);
new_it->next[PL_MAIN] = NULL;
new_it->prev[PL_MAIN] = NULL;
new_it->next[PL_SEARCH] = NULL;
new_it->prev[PL_SEARCH] = NULL;
pl_insert_item (after, new_it);
pl_item_unref (new_it);
after = new_it;
Expand Down

0 comments on commit 2b7e791

Please sign in to comment.