зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1100205 - Zero ScreenDetails outparam in RecvScreenForBrowser() so Valgrind doesn't complain. r=mconley.
--HG-- extra : rebase_source : 6420a5d78ed1d28d157ab10db14951fb14cc523a
This commit is contained in:
Родитель
39970eda35
Коммит
bb9d9e645b
|
@ -121,6 +121,11 @@ ScreenManagerParent::RecvScreenForBrowser(PBrowserParent* aBrowser,
|
|||
bool* aSuccess)
|
||||
{
|
||||
*aSuccess = false;
|
||||
#ifdef MOZ_VALGRIND
|
||||
// Zero this so that Valgrind doesn't complain when we send it to another
|
||||
// process.
|
||||
memset(aRetVal, 0, sizeof(ScreenDetails));
|
||||
#endif
|
||||
|
||||
// Find the mWidget associated with the tabparent, and then return
|
||||
// the nsIScreen it's on.
|
||||
|
|
Загрузка…
Ссылка в новой задаче