Where do you see the automatic removal of handlers? There's nothing when a widget is unloaded, and I can't find anything that would do any cleanup. Maybe there's some code somewhere to do cleanup as the app is shutting down?
I'm *really* interested in this because I'm in the process of tracking down what appear to be some memory leaks as I navigate between "screens" in my app. thanks, jay On Jul 14, 4:34 am, Paul Stockley <pstockl...@gmail.com> wrote: > You don't need to. I traced the code a while back and it takes care of > it. > > On Jul 13, 5:50 pm, Gal Dolber <gal.dol...@gmail.com> wrote: > > > > > Anyone?? > > > 2010/7/13 Gal Dolber <gal.dol...@gmail.com> > > > > Hi, someone knows for sure if its necessary toremoveevent handlers when > > > weremovea widget? will I get memory leaks if I don't? > > > > i.e: > > > HandlerRegistration registration = button.addClickHandler(myHandler); > > > ... > > > // IS THIS NECESSARY? > > > public void fakeCleanerMethodBeforeIRemoveTheWidget() { > > > registration.removeHandler(); > > > } > > > > I thought that answer was YES, but then I notice that @UiHandlers in > > > uibinder have no way toremovethehandler. > > > > I don't think the gwt's team will make that mistake. > > > > Can someone confirm? Thanks > > > > -- > > >http://gwtupdates.blogspot.com/ > > > --http://gwtupdates.blogspot.com/ -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.