OpenGL glDeleteTextures Crash

Does this happen when the editor is closed? Or just after a very long time while the editor is still open? Is there any host where this happens more often?

I was recently mucking about in the code that fixed the bug mentioned in this thread (but this only happened on closing the editor). I thought I made the fix more robust.