Explicitly capture variables
authorCheoleun Moon <chleun.moon@samsung.com>
Thu, 9 Apr 2020 13:12:49 +0000 (22:12 +0900)
committerCheoleun Moon <chleun.moon@samsung.com>
Thu, 9 Apr 2020 13:13:28 +0000 (22:13 +0900)
src/NanDataPathManager.cpp

index aec89abf12fc3a83bb0f0192e2b0e2c5f52da061..07cbbbeb085d5a394fe9086079f72ef0c09b60af 100644 (file)
@@ -208,7 +208,7 @@ void NanDataPathManager::startOpenDataPathTimer(NanDataPathInformation *info,
                const std::string &clientPath)
 {
        NAN_LOGI("Start Timer for OpenDataPath. timeout(%d) info(%p)", NAN_DATA_PATH_TIMEOUT, info);
-       NanTimer *timer = new NanTimer(NAN_DATA_PATH_TIMEOUT, [=]() {
+       NanTimer *timer = new NanTimer(NAN_DATA_PATH_TIMEOUT, [this, info, clientPath]() {
                                openDataPathTimeoutHandler(info, clientPath);
                        });
        info->setTimer(timer);