memory leaks solved for extended control class