plug resize memory leak