Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Issue 6313007: Fix crash in PluginService if the keys are null. It's still unclear why this... (Closed)

Created:
9 years, 11 months ago by jam
Modified:
9 years, 7 months ago
Reviewers:
amit
CC:
chromium-reviews, darin-cc_chromium.org, stuartmorgan+watch_chromium.org
Visibility:
Public.

Description

Fix crash in PluginService if the keys are null. It's still unclear why this is happening now as opposed to before. This change just fixes the crash in the meantime. BUG=70317 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=72083

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -2 lines) Patch
M chrome/browser/plugin_service.cc View 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
jam
9 years, 11 months ago (2011-01-21 01:05:08 UTC) #1
amit
9 years, 11 months ago (2011-01-21 01:18:55 UTC) #2
ok

On Thu, Jan 20, 2011 at 5:05 PM, <jam@chromium.org> wrote:

> Reviewers: amit,
>
> Description:
> Fix crash in PluginService if the keys are null.  It's still unclear why
> this is
> happening now as opposed to before.  This change just fixes the crash in
> the
> meantime.
>
> BUG=70317
>
> Please review this at http://codereview.chromium.org/6313007/
>
> SVN Base: svn://chrome-svn/chrome/trunk/src/
>
> Affected files:
>  M     chrome/browser/plugin_service.cc
>
>
> Index: chrome/browser/plugin_service.cc
> ===================================================================
> --- chrome/browser/plugin_service.cc    (revision 71973)
> +++ chrome/browser/plugin_service.cc    (working copy)
> @@ -218,8 +218,10 @@
>   // Release the events since they're owned by RegKey, not WaitableEvent.
>   hkcu_watcher_.StopWatching();
>   hklm_watcher_.StopWatching();
> -  hkcu_event_->Release();
> -  hklm_event_->Release();
> +  if (hkcu_event_.get())
> +    hkcu_event_->Release();
> +  if (hklm_event_.get())
> +    hklm_event_->Release();
>  #endif
>  }
>
>
>
>

Powered by Google App Engine
This is Rietveld 408576698