//Drop trait can't free thread_local automatically
//so wo free resources manually at the end of main(after all windows has been closed)

Drop trait can't free thread_local automatically
so wo free resources manually at the end of main(after all windows has been closed)
Drop trait can ' t free thread_local automatically so wo free resources manually at the end of main ( after all windows has been closed )
fn drop(&mut self) {
        unsafe {
            for page in &self.pages {
                um::memoryapi::VirtualFree(*page, 0, MEM_RELEASE);
            }
        }
    }
fn drop ( & mut self ) { unsafe { for page in & self . pages { um :: memoryapi :: VirtualFree ( * page , 0 , MEM_RELEASE ) ; } } }
Drop trait can't free thread_local automatically
so wo free resources manually at the end of main(after all windows has been closed)
Drop trait can ' t free thread_local automatically so wo free resources manually at the end of main ( after all windows has been closed )
&mut self