fixed memory leak in the win_alloc api call family

the struct that was holding the plugin, window callback
and free callback was not being freed after the window
was deallocated.