webrtc/sdk/android/native_api
Sami Kalliomäki ee61f9440a Fix a bug in video_encoder_wrapper where int array was not freed properly.
JNI_COMMIT doesn't actually free the buffer.

From JNI docs:
0: copy back the content and free the elems buffer
JNI_COMMIT: copy back the content but do not free the elems buffer
JNI_ABORT: free the buffer without copying back the possible changes

Also introduces helper methods to help avoid this problem in the
future.

Bug: webrtc:10132
Change-Id: I769df286d3bd186fdf39ee2363e9002f36454509
Reviewed-on: https://webrtc-review.googlesource.com/c/120600
Reviewed-by: Magnus Jedvert <magjed@webrtc.org>
Commit-Queue: Sami Kalliomäki <sakal@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#26529}
2019-02-04 13:12:07 +00:00
..
audio_device_module (4) Rename files to snake_case: update BUILD.gn, include paths, header guards, and DEPS entries 2019-01-11 17:11:39 +00:00
base (7) Rename files to snake_case: remove forwarding headers 2019-01-26 00:33:46 +00:00
codecs (4) Rename files to snake_case: update BUILD.gn, include paths, header guards, and DEPS entries 2019-01-11 17:11:39 +00:00
jni Fix a bug in video_encoder_wrapper where int array was not freed properly. 2019-02-04 13:12:07 +00:00
peerconnection (7) Rename files to snake_case: remove forwarding headers 2019-01-26 00:33:46 +00:00
stacktrace Reland "Android: Add helper methods for printing native stack traces" 2019-01-21 15:18:56 +00:00
video (7) Rename files to snake_case: remove forwarding headers 2019-01-26 00:33:46 +00:00
DEPS Move android audio device code into sdk/android 2018-03-20 16:04:33 +00:00