From c3aeb2464e30792710aea635a0755a729ae60da3 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 git-svn-id: svn://10.0.0.236/trunk@149499 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/profile/pref-migrator/src/nsPrefMigration.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mozilla/profile/pref-migrator/src/nsPrefMigration.cpp b/mozilla/profile/pref-migrator/src/nsPrefMigration.cpp index 22850838b94..197400926ee 100644 --- a/mozilla/profile/pref-migrator/src/nsPrefMigration.cpp +++ b/mozilla/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;