diff --git a/tests/cefclient/browser/root_window_mac.mm b/tests/cefclient/browser/root_window_mac.mm index ca0434c59..4a160dc5d 100644 --- a/tests/cefclient/browser/root_window_mac.mm +++ b/tests/cefclient/browser/root_window_mac.mm @@ -197,6 +197,10 @@ // Deletes itself. - (void)cleanup:(id)window { root_window_->WindowDestroyed(); + + // Don't want any more delegate callbacks after we destroy ourselves. + [window setDelegate:nil]; + [self release]; }