engine/src/FeedEngine.cpp
changeset 110 403412eb5292
parent 109 223f270fa7ff
child 111 12c59f14a031
--- a/engine/src/FeedEngine.cpp	Sun Apr 04 15:54:17 2010 +0100
+++ b/engine/src/FeedEngine.cpp	Sun Apr 04 16:23:10 2010 +0100
@@ -623,7 +623,9 @@
 				{
 				// now the image has been downloaded, so we set it again in the FeedInfo to start
 				// converting it
-				TRAP_IGNORE(iActiveFeed->SetImageFileNameL(iActiveFeed->ImageFileName(), &iPodcastModel));
+				HBufC *fileNameCopy = iActiveFeed->ImageFileName().AllocLC();
+				TRAP_IGNORE(iActiveFeed->SetImageFileNameL(*fileNameCopy, &iPodcastModel));
+				CleanupStack::PopAndDestroy(fileNameCopy);
 				}
 			DBUpdateFeedL(*iActiveFeed);
 			NotifyFeedUpdateComplete(iActiveFeed->Uid(), aError);