зеркало из https://github.com/mozilla/gecko-dev.git
Partial fix to 7202. free (XPT_DELETE()) a pointer that was previously just set to NULL and leaked.
Thanks to David Gardiner <david.gardiner@unisa.edu.au> for the patch, and to bruce to pointing me to it.
This commit is contained in:
Родитель
28b57410f7
Коммит
70e0887424
|
@ -481,7 +481,7 @@ DoInterfaceDescriptor(XPTCursor *outer, XPTInterfaceDescriptor **idp)
|
|||
if (!XPT_Do32(outer, &cursor->offset))
|
||||
goto error;
|
||||
if (mode == XPT_DECODE && !cursor->offset) {
|
||||
*idp = NULL;
|
||||
XPT_DELETE(*idp);
|
||||
return PR_TRUE;
|
||||
}
|
||||
if(!XPT_Do16(cursor, &id->parent_interface) ||
|
||||
|
|
Загрузка…
Ссылка в новой задаче