From: hsgwon Date: Thu, 26 Jul 2018 05:14:27 +0000 (+0900) Subject: [Tizen.Multimedia.Util] Fix callback function lifecycle bug (#350) X-Git-Tag: accepted/tizen/4.0/unified/20180803.172201~1^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5b8c654a9a9053641dc7e2d408bf81b9a8fb989c;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [Tizen.Multimedia.Util] Fix callback function lifecycle bug (#350) --- diff --git a/src/Tizen.Multimedia.Util/ThumbnailExtractor/ThumbnailExtractor.cs b/src/Tizen.Multimedia.Util/ThumbnailExtractor/ThumbnailExtractor.cs old mode 100755 new mode 100644 index 8833510..6a69eb9 --- a/src/Tizen.Multimedia.Util/ThumbnailExtractor/ThumbnailExtractor.cs +++ b/src/Tizen.Multimedia.Util/ThumbnailExtractor/ThumbnailExtractor.cs @@ -190,9 +190,10 @@ namespace Tizen.Multimedia.Util } } + private static Native.ThumbnailExtractCallback thumbnailExtractCallback; private static Native.ThumbnailExtractCallback GetCallback(TaskCompletionSource tcs) { - return (error, requestId, thumbWidth, thumbHeight, thumbData, dataSize, _) => + return thumbnailExtractCallback = (error, requestId, thumbWidth, thumbHeight, thumbData, dataSize, _) => { if (error == ThumbnailExtractorError.None) {