aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Marshall <jmarshall@never.you.mind>2011-03-30 10:59:02 +1300
committerJonathan Marshall <jmarshall@never.you.mind>2011-03-30 11:00:59 +1300
commited1bda2c4df15d43a5a6e4dbb94dd683e7e8cbc0 (patch)
tree8c0c9c15e5adb2ef323d834448075741f2c8d48b
parente4db2191858778257a7541dfda3308f448f09081 (diff)
ensure the buffer is cleared prior to loading it with cached data from previous scrapes - fixes #11377
-rw-r--r--xbmc/utils/ScraperUrl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/xbmc/utils/ScraperUrl.cpp b/xbmc/utils/ScraperUrl.cpp
index dcfc115dac..40d44ffc29 100644
--- a/xbmc/utils/ScraperUrl.cpp
+++ b/xbmc/utils/ScraperUrl.cpp
@@ -194,6 +194,7 @@ bool CScraperUrl::Get(const SUrlEntry& scrURL, std::string& strHTML, XFILE::CFil
file.Open(strCachePath);
char* temp = new char[(int)file.GetLength()];
file.Read(temp,file.GetLength());
+ strHTML.clear();
strHTML.append(temp,temp+file.GetLength());
file.Close();
delete[] temp;