engine/src/FeedEngine.cpp
changeset 77 403412eb5292
parent 76 223f270fa7ff
child 78 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);