Bug 961802: Plugged leak in getUserMedia Denied code-path. r=jesup

This commit is contained in:
Jan-Ivar Bruaroey 2014-01-22 16:43:34 -05:00
Родитель 24578956df
Коммит 0a07322d17
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -878,6 +878,7 @@ public:
if (NS_IsMainThread()) { if (NS_IsMainThread()) {
// This is safe since we're on main-thread, and the window can only // This is safe since we're on main-thread, and the window can only
// be invalidated from the main-thread (see OnNavigation) // be invalidated from the main-thread (see OnNavigation)
nsCOMPtr<nsIDOMGetUserMediaSuccessCallback> success(mSuccess);
nsCOMPtr<nsIDOMGetUserMediaErrorCallback> error(mError); nsCOMPtr<nsIDOMGetUserMediaErrorCallback> error(mError);
error->OnError(aErrorMsg); error->OnError(aErrorMsg);