Skip to content

Commit ba5cb6d

Browse files
authored
Scheduled Iteration Mem-release Order (#752)
1 parent eab7c64 commit ba5cb6d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/darwin/dispatch_queue_event_loop.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,9 @@ static void s_scheduled_iteration_entry_destroy(struct scheduled_iteration_entry
171171
return;
172172
}
173173

174-
s_dispatch_loop_release(entry->dispatch_loop);
174+
struct aws_dispatch_loop *dispatch_loop_for_release = entry->dispatch_loop;
175175
aws_mem_release(entry->allocator, entry);
176+
s_dispatch_loop_release(dispatch_loop_for_release);
176177
}
177178

178179
/* Manually called to destroy an aws_event_loop */

0 commit comments

Comments
 (0)