ProxyCheckInfo.cpp 462 B

12345678910111213141516171819
  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. #include "ProxyCheckInfo.h"
  9. #include "ConnectionsManager.h"
  10. ProxyCheckInfo::~ProxyCheckInfo() {
  11. #ifdef ANDROID
  12. if (ptr1 != nullptr) {
  13. jniEnv[instanceNum]->DeleteGlobalRef(ptr1);
  14. ptr1 = nullptr;
  15. }
  16. #endif
  17. }