Telegram-Android/TMessagesProj/jni/tgnet/ProxyCheckInfo.cpp

22 lines
531 B
C++
Raw Normal View History

2018-07-30 04:07:02 +02:00
/*
* This is the source code of tgnet library v. 1.1
* It is licensed under GNU GPL v. 2 or later.
* You should have received a copy of the license in this archive (see LICENSE).
*
* Copyright Nikolai Kudashov, 2015-2018.
*/
#include "ProxyCheckInfo.h"
#include "ConnectionsManager.h"
2023-03-24 12:38:14 +01:00
#include "FileLog.h"
2018-07-30 04:07:02 +02:00
ProxyCheckInfo::~ProxyCheckInfo() {
#ifdef ANDROID
if (ptr1 != nullptr) {
2023-03-24 12:38:14 +01:00
DEBUG_DELREF("tgnet (2) request ptr1");
2018-07-30 04:07:02 +02:00
jniEnv[instanceNum]->DeleteGlobalRef(ptr1);
ptr1 = nullptr;
}
#endif
}