| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent a11ea1b commit ba7364f
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -851,14 +851,12 @@ public void copyBufferFromSource(Object natRef, ByteBuffer byteBuf, | |||
| 851 | 851 | ||
| 852 | 852 | ||
| 853 | 853 | public void disposeSourceBuffer() { | |
| 854 | - System.out.println(" in disposeSourceBuffer"); | ||
| 855 | 854 | if (usedBuffers == null) return; | |
| 856 | 855 | ||
| 857 | 856 | while (0 < usedBuffers.size()) { | |
| 858 | 857 | BufferData data = null; | |
| 859 | 858 | try { | |
| 860 | 859 | data = usedBuffers.remove(0); | |
| 861 | - System.out.println("Disposing " + data + " in disposeSourceBuffer"); | ||
| 862 | 860 | } catch (NoSuchElementException ex) { | |
| 863 | 861 | PGraphics.showWarning("Cannot remove used buffer"); | |
| 864 | 862 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1005,7 +1005,6 @@ protected synchronized void invokeEvent(int w, int h, Buffer buffer) { | |||
| 1005 | 1005 | // To handle the situation where read() is not called in the sketch, so | |
| 1006 | 1006 | // that the native buffers are not being sent to the sinke, and therefore, not disposed | |
| 1007 | 1007 | // by it. | |
| 1008 | - System.out.println(" disposing nat buffer before reading new one"); | ||
| 1009 | 1008 | natBuffer.dispose(); | |
| 1010 | 1009 | } | |
| 1011 | 1010 | natBuffer = buffer; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -770,7 +770,6 @@ protected synchronized void invokeEvent(int w, int h, Buffer buffer) { | |||
| 770 | 770 | // To handle the situation where read() is not called in the sketch, so | |
| 771 | 771 | // that the native buffers are not being sent to the sinke, and therefore, not disposed | |
| 772 | 772 | // by it. | |
| 773 | - System.out.println(" disposing nat buffer before reading new one"); | ||
| 774 | 773 | natBuffer.dispose(); | |
| 775 | 774 | } | |
| 776 | 775 | natBuffer = buffer; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments