commit | 44c6a4106ea9c8d903e62b20357ea8d5387b8f4f | [log] [tgz] |
---|---|---|
author | Tom Tromey <tromey@adacore.com> | Thu Mar 31 10:08:45 2022 -0600 |
committer | Tom Tromey <tromey@adacore.com> | Mon Apr 04 13:58:37 2022 -0600 |
tree | 3ea034be470c32f3b611b73add7e1bd7a4701cb5 | |
parent | 04ae91ea5223735820f44d580055362b06a6df73 [diff] |
Use unique_ptr in the Windows thread list windows-nat.c uses some manual memory management when manipulating the thread_list global. Changing this to use unique_ptr simplifies the code, in particular windows_init_thread_list. (Note that, while I think the the call to init_thread_list in there is wrong, I haven't removed it in this patch.)