1
0
mirror of https://github.com/nerzhul/ownCloud-SMS-App.git synced 2026-08-22 05:43:05 +00:00

Don't let Java choose when cleaning SmsBuffer, do it ourself

This commit is contained in:
Loic Blot
2017-08-23 22:59:43 +02:00
committed by Loïc Blot
parent 5e6a1fc28e
commit 11bbed02b8
5 changed files with 21 additions and 6 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ jlong SmsBuffer::createNativeObject(JNIEnv *env, jobject self)
void SmsBuffer::deleteNativeObject(JNIEnv *env, jobject self, jlong ptr)
{
__android_log_print(ANDROID_LOG_INFO, LOG_TAG, "deleteSmsBuffer");
__android_log_print(ANDROID_LOG_INFO, LOG_TAG, "deleteNativeObject 0x%li", ptr);
delete reinterpret_cast<SmsBuffer *>(ptr);
}