From d56b7da4469a84f0ef8e0127fc180acd13ebd70a Mon Sep 17 00:00:00 2001 From: martii Date: Fri, 21 Jun 2013 10:36:41 +0200 Subject: [PATCH] ytcache: use temporary CFileHelpers instance --- src/system/ytcache.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/system/ytcache.cpp b/src/system/ytcache.cpp index 51cf86114..a404bbf03 100644 --- a/src/system/ytcache.cpp +++ b/src/system/ytcache.cpp @@ -162,7 +162,8 @@ bool cYTCache::download(MI_MOVIE_INFO *mi) File.Name = xml; cMovieInfo.saveMovieInfo(*mi, &File); std::string thumbnail_dst = getName(mi, "jpg"); - CFileHelpers::getInstance()->copyFile(mi->tfile.c_str(), thumbnail_dst.c_str(), 0644); + CFileHelpers fh; + fh.copyFile(mi->tfile.c_str(), thumbnail_dst.c_str(), 0644); return true; }