| 1 | /* |
| 2 | * This is the source code of tgnet library v. 1.1 |
| 3 | * It is licensed under GNU GPL v. 2 or later. |
| 4 | * You should have received a copy of the license in this archive (see LICENSE). |
| 5 | * |
| 6 | * Copyright Nikolai Kudashov, 2015-2018. |
| 7 | */ |
| 8 | |
| 9 | #include "ProxyCheckInfo.h" |
| 10 | #include "ConnectionsManager.h" |
| 11 | |
| 12 | ProxyCheckInfo::~ProxyCheckInfo() { |
| 13 | #ifdef ANDROID |
| 14 | if (ptr1 != nullptr) { |
| 15 | jniEnv[instanceNum]->DeleteGlobalRef(ptr1); |
| 16 | ptr1 = nullptr; |
| 17 | } |
| 18 | #endif |
| 19 | } |
| 20 |