зеркало из https://github.com/mozilla/gecko-dev.git
Fix a small memory leak.
This commit is contained in:
Родитель
1bc29c3671
Коммит
34547c75a3
|
@ -37,6 +37,7 @@
|
|||
#include "nsIRegistry.h"
|
||||
#include "nsIEnumerator.h"
|
||||
#include "nsICmdLineService.h"
|
||||
#include "nsCRT.h"
|
||||
#ifdef NS_DEBUG
|
||||
#include "prprf.h"
|
||||
#endif
|
||||
|
@ -293,6 +294,7 @@ nsAppShellService::EnumerateComponents( void (nsAppShellService::*function)( con
|
|||
// Unable to get subkey name, ignore it.
|
||||
}
|
||||
// Release the node.
|
||||
nsCRT::free(name);
|
||||
NS_RELEASE( node );
|
||||
} else {
|
||||
// Unable to convert item to registry node, ignore it.
|
||||
|
|
Загрузка…
Ссылка в новой задаче