diff options
| author | Po Lu | 2023-10-04 16:33:05 +0800 |
|---|---|---|
| committer | Po Lu | 2023-10-04 16:33:05 +0800 |
| commit | bb417daa703b0dd8871470ce53a40b16b1ca300b (patch) | |
| tree | e826d39aef4b622acfdc9c77a4b581dbab447fab /src/android.h | |
| parent | fbfdd1e0e3e67f765c6dbf9f61b5f913e55e004e (diff) | |
| download | emacs-bb417daa703b0dd8871470ce53a40b16b1ca300b.tar.gz emacs-bb417daa703b0dd8871470ce53a40b16b1ca300b.zip | |
Correct local reference leaks
* src/android.c (android_build_string): Accept a list of local
references to destroy upon an allocation failure, facilitating
the proper deallocation of local references in such situations.
(android_browse_url): Revise for new calling convention.
* src/android.h (android_build_string): Update declaration
correspondingly.
* src/androidmenu.c (android_menu_show, android_dialog_show):
Revise for new calling convention.
* src/androidselect.c (android_notifications_notify_1): Supply
each successive local reference to android_build_string as
notification text is being encoded.
* src/androidvfs.c (android_saf_exception_check): Introduce
absent va_end.
Diffstat (limited to 'src/android.h')
| -rw-r--r-- | src/android.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/android.h b/src/android.h index d4605c11ad0..28d9d25930e 100644 --- a/src/android.h +++ b/src/android.h | |||
| @@ -108,7 +108,7 @@ extern void android_set_dont_focus_on_map (android_window, bool); | |||
| 108 | extern void android_set_dont_accept_focus (android_window, bool); | 108 | extern void android_set_dont_accept_focus (android_window, bool); |
| 109 | 109 | ||
| 110 | extern int android_verify_jni_string (const char *); | 110 | extern int android_verify_jni_string (const char *); |
| 111 | extern jstring android_build_string (Lisp_Object); | 111 | extern jstring android_build_string (Lisp_Object, ...); |
| 112 | extern jstring android_build_jstring (const char *); | 112 | extern jstring android_build_jstring (const char *); |
| 113 | extern void android_exception_check (void); | 113 | extern void android_exception_check (void); |
| 114 | extern void android_exception_check_1 (jobject); | 114 | extern void android_exception_check_1 (jobject); |