зеркало из https://github.com/mozilla/pjs.git
fixing ViewWrapper leaks introduced by bug 250342 checkin, r+sr=dbaron
This commit is contained in:
Родитель
95279170c0
Коммит
997a91d826
|
@ -99,6 +99,10 @@ static ViewWrapper* GetWrapperFor(nsIWidget* aWidget)
|
|||
if (data) {
|
||||
ViewWrapper* wrapper;
|
||||
CallQueryInterface(data, &wrapper);
|
||||
// Give a weak reference to the caller. There will still be at least one
|
||||
// reference left, since the wrapper was addrefed when set on the widget.
|
||||
if (wrapper)
|
||||
wrapper->Release();
|
||||
return wrapper;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче