title: WebGL deleteBuffer leaking memory?
body: <p>I've got a WebGL application that manages a lot of data.  I've run into issues on IE11 in which it quickly runs out of memory (Chrome and FF do not exhibit this issue).  However, when I created some test code to isolate the cause of the leak, the test code leaks on Chrome as well.  Further testing showed that even Chrome is leaking in the actual application, or appears to, but seems not to crash as IE11 does.</p>
  
  <p>Here is a fiddle of the test code that exhibits the problem: <a href="http://jsfiddle.net/KU3s7/20/" rel="noreferrer">EXAMPLE</a></p>
  
  <p>Basically, I'm creating buffers using this:</p>
  
  <pre><code>var buffer = gl.createBuffer();
  gl.bindBuffer(gl.ARRAY_BUFFER, buffer);
  gl.bufferData(gl.ARRAY_BUFFER, bufferData, gl.STATIC_DRAW);
  gl.bindBuffer(gl.ARRAY_BUFFER, null);
  </code></pre>
  
  <p>For each buffer that I create, I also make a corresponding call to delete it like this (deleted when necessary):</p>
  
  <pre><code>gl.deleteBuffer(buffer);
  </code></pre>
  
  <p>However, as can be seen in the jsfiddle test code, deleting the buffer(s) seems not to free the memory used by the browser.  It will quickly run out of memory even though the buffers are getting deleted.</p>
  
  <p>This is a contrived example, obviously, but it does reflect what I'm doing (i.e., creating buffers and later deleting them), but over time it seems this causes memory not to be freed.</p>
  
  <p>How should I be freeing this memory to avoid a leak?  Any ideas?</p>