]> git.eshelyaron.com Git - emacs.git/commit
Correct local reference leaks
authorPo Lu <luangruo@yahoo.com>
Wed, 4 Oct 2023 08:33:05 +0000 (16:33 +0800)
committerPo Lu <luangruo@yahoo.com>
Wed, 4 Oct 2023 08:33:05 +0000 (16:33 +0800)
commitbb417daa703b0dd8871470ce53a40b16b1ca300b
treee826d39aef4b622acfdc9c77a4b581dbab447fab
parentfbfdd1e0e3e67f765c6dbf9f61b5f913e55e004e
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.
src/android.c
src/android.h
src/androidmenu.c
src/androidselect.c
src/androidvfs.c