Bug 1100205 - Zero ScreenDetails outparam in RecvScreenForBrowser() so Valgrind doesn't complain. r=mconley.

--HG--
extra : rebase_source : 6420a5d78ed1d28d157ab10db14951fb14cc523a
This commit is contained in:
Nicholas Nethercote 2014-11-18 00:29:12 -08:00
Родитель 39970eda35
Коммит bb9d9e645b
1 изменённых файлов: 5 добавлений и 0 удалений

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

@ -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.