Skip to content

Commit

Permalink
fix(DmPerformance): make sure to retain th segment when looping
Browse files Browse the repository at this point in the history
  • Loading branch information
lmichaelis committed May 3, 2024
1 parent cc23862 commit 0aa57ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Performance.c
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ static void DmPerformance_handleSegmentMessage(DmPerformance* slf, DmMessage_Seg
DmMessage m;
m.type = DmMessage_SEGMENT;
m.time = 0;
m.segment.segment = sgt;
m.segment.segment = DmSegment_retain(sgt);
m.segment.loop = msg->loop + 1;

DmMessageQueue_add(&slf->control_queue, &m, slf->time + slf->segment->length, DmQueueConflict_KEEP);
Expand Down

0 comments on commit 0aa57ee

Please sign in to comment.