]> git.eshelyaron.com Git - emacs.git/commit
Avert a crash and file descriptor leak in yank-media
authorPo Lu <luangruo@yahoo.com>
Sun, 29 Oct 2023 04:59:45 +0000 (12:59 +0800)
committerPo Lu <luangruo@yahoo.com>
Sun, 29 Oct 2023 04:59:45 +0000 (12:59 +0800)
commit59a3edc3559057e6f0346e3f1b3b13e8ef3e1683
treee39dd5ff3ea5fd4096035b7d71b6e4ebf138abf3
parent3624e9bd409075d4f78b240ebdb356f93fd9c3e4
Avert a crash and file descriptor leak in yank-media

* java/org/gnu/emacs/EmacsNative.java (close): New declaration.

* java/org/gnu/emacs/EmacsSdk11Clipboard.java
(getClipboardData): Catch SecurityException and guarantee file
descriptors are closed even if exceptions arise.

* src/android.c (dup): Export another function.
java/org/gnu/emacs/EmacsNative.java
java/org/gnu/emacs/EmacsSdk11Clipboard.java
src/android.c