From 11f454bc76754d0e95a801b2d2e9452cf4e405d8 Mon Sep 17 00:00:00 2001 From: QwQ <59914293+Qv2ray-dev@users.noreply.github.com> Date: Wed, 5 Aug 2020 13:11:04 +0800 Subject: [PATCH] fix: fixed shared_ptr refcount crash on macOS --- makespec/BUILDVERSION | 2 +- src/ui/node/NodeBase.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/makespec/BUILDVERSION b/makespec/BUILDVERSION index 3951fb10..3fb524c7 100644 --- a/makespec/BUILDVERSION +++ b/makespec/BUILDVERSION @@ -1 +1 @@ -5859 +5860 diff --git a/src/ui/node/NodeBase.hpp b/src/ui/node/NodeBase.hpp index fd2f29e9..0c428247 100644 --- a/src/ui/node/NodeBase.hpp +++ b/src/ui/node/NodeBase.hpp @@ -50,7 +50,7 @@ namespace Qv2ray::ui::nodemodels } \ std::shared_ptr GetData() \ { \ - return data; \ + return std::shared_ptr(data); \ } \ \ private: \