engine/src/ShowInfo.cpp
changeset 60 4d230e702aa3
parent 2 29cda98b007e
child 349 4538abb763e4
--- a/engine/src/ShowInfo.cpp	Thu Mar 11 20:53:00 2010 +0100
+++ b/engine/src/ShowInfo.cpp	Tue Apr 27 19:26:48 2010 +0100
@@ -217,10 +217,22 @@
 
 EXPORT_C CShowInfo::CShowInfo(CShowInfo *aInfo)
 	{
+	if (iTitle)
+		delete iTitle;
 	iTitle = aInfo->Title().Alloc();
+	
+	if(iUrl)
+		delete iUrl;
 	iUrl = aInfo->Url().Alloc();
+	
+	if (iDescription)
+		delete iDescription;
 	iDescription = aInfo->Description().Alloc();
+	
+	if (iFileName)
+		delete iFileName;
 	iFileName = aInfo->FileName().Alloc();
+	
 	iPosition = aInfo->Position();
 	iPlayTime = aInfo->PlayTime();
 	iPlayState = aInfo->PlayState();