Fix double free errors in Winio
Since re-introducing the free calls the compiler can randomly segfault due to double free errors when using winio. fix these before release.
Since re-introducing the free calls the compiler can randomly segfault due to double free errors when using winio. fix these before release.