Closed youngifif closed 7 months ago
A logic bug is detailed in comment as follows:
for ( ;; ) { if ( ! Download ) break; if ( Download->State == DOWNLOAD_STATE_REMOVE ) { /* we are at the beginning. */ if ( ! DownLast ) { Instance.Downloads = Download->Next; DownloadFree( Download ); Download = NULL; } else { DownLast->Next = Download->Next; DownloadFree( Download );// `Download` will be set to null,and then break the for-loop.Fixing DownLast = NULL; } } else { DownLast = Download; Download = Download->Next; } }
make a pull request towards dev and not main.
A logic bug is detailed in comment as follows: