From ebe81085e98d9644003c8e1b37ed1f2559727a36 Mon Sep 17 00:00:00 2001 From: "timeless%mozdev.org" Date: Tue, 18 Nov 2003 18:19:41 +0000 Subject: [PATCH] Bug 226026 DRefTool analysis for profile migrator files r=roc sr=roc --- profile/pref-migrator/src/nsPrefMigration.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/profile/pref-migrator/src/nsPrefMigration.cpp b/profile/pref-migrator/src/nsPrefMigration.cpp index 22850838b94..197400926ee 100644 --- a/profile/pref-migrator/src/nsPrefMigration.cpp +++ b/profile/pref-migrator/src/nsPrefMigration.cpp @@ -313,6 +313,9 @@ NS_IMETHODIMP nsPrefMigration::AddProfilePaths(const char * oldProfilePathStr, const char * newProfilePathStr) { MigrateProfileItem* item = new MigrateProfileItem(); + if (!item) + return NS_ERROR_OUT_OF_MEMORY; + item->oldFile = oldProfilePathStr; item->newFile = newProfilePathStr;