Commit c96a729
To avoid the JNI memory leaks in video editor codes
There is a protential memory leak in video editor JNI codes.
When importing so many video clips, the number of local reference
will exceed 512, which will cause the Dalvik virtual machine
crash. The patch will free each local reference when it's no
longer used to avoid memory leaks.
Change-Id: Iecd986c83f05a1103641746d6d43eef0a9c5ee40
Author: Wei Feng <wei.feng@intel.com>
Signed-off-by: Wei Feng <wei.feng@intel.com>
Singed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 407861 parent a950daf commit c96a729
File tree
3 files changed
+17
-0
lines changed- media/jni/mediaeditor
3 files changed
+17
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1853 | 1853 | | |
1854 | 1854 | | |
1855 | 1855 | | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
1856 | 1859 | | |
1857 | 1860 | | |
1858 | 1861 | | |
| |||
1877 | 1880 | | |
1878 | 1881 | | |
1879 | 1882 | | |
| 1883 | + | |
| 1884 | + | |
| 1885 | + | |
1880 | 1886 | | |
1881 | 1887 | | |
1882 | 1888 | | |
| |||
1900 | 1906 | | |
1901 | 1907 | | |
1902 | 1908 | | |
| 1909 | + | |
| 1910 | + | |
| 1911 | + | |
1903 | 1912 | | |
1904 | 1913 | | |
1905 | 1914 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
387 | 387 | | |
388 | 388 | | |
389 | 389 | | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
390 | 393 | | |
391 | 394 | | |
392 | 395 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
380 | 380 | | |
381 | 381 | | |
382 | 382 | | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
383 | 386 | | |
384 | 387 | | |
385 | 388 | | |
| |||
1849 | 1852 | | |
1850 | 1853 | | |
1851 | 1854 | | |
| 1855 | + | |
1852 | 1856 | | |
| 1857 | + | |
1853 | 1858 | | |
1854 | 1859 | | |
1855 | 1860 | | |
| |||
0 commit comments