From bcccdd97a7195e4dcc5a4782b0d661c27aacc97e Mon Sep 17 00:00:00 2001 From: "mcmullen%netscape.com" Date: Sat, 20 Mar 1999 00:41:14 +0000 Subject: [PATCH] Again. --- rdf/datasource/src/nsHistoryDataSource.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rdf/datasource/src/nsHistoryDataSource.cpp b/rdf/datasource/src/nsHistoryDataSource.cpp index 4d1e00e4506..637b1247ba7 100644 --- a/rdf/datasource/src/nsHistoryDataSource.cpp +++ b/rdf/datasource/src/nsHistoryDataSource.cpp @@ -496,7 +496,8 @@ nsHistoryDataSource::ReadOneHistoryFile(nsInputFileStream& aStream, const char * PR_ExplodeTime(time, PR_LocalTimeParameters, &etime); if (etime.tm_yday == mSessionTime.tm_yday) { - PR_FREEIF((char*)mCurrentFilePath); + if (mCurrentFilePath) + PR_Free((char*)mCurrentFilePath); mCurrentFilePath = PL_strdup(fileURL); } }