From c12ecab6d48f359d79312aaae5f535b0f26f8445 Mon Sep 17 00:00:00 2001 From: "ziadh@chromium.org" Date: Tue, 27 Jul 2010 20:13:23 +0000 Subject: Add undeclared virtual destructors part 2 Preventative maintainance for abstract classes that do not declare virtual destructors. Base classes that do not declare their destructors as virtual could potentially lead to memory leaks. r=jar BUG=47469 Review URL: http://codereview.chromium.org/3032024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53831 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome_frame/test/window_watchdog.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'chrome_frame/test') diff --git a/chrome_frame/test/window_watchdog.h b/chrome_frame/test/window_watchdog.h index 700859f..60accda 100644 --- a/chrome_frame/test/window_watchdog.h +++ b/chrome_frame/test/window_watchdog.h @@ -17,6 +17,9 @@ struct FunctionStub; class WindowObserver { // NOLINT public: virtual void OnWindowDetected(HWND hwnd, const std::string& caption) = 0; + + protected: + virtual ~WindowObserver() {} }; // Watch a for window to be shown with the given window class name. -- cgit v1.1