** Description changed: This is a simple one. There are only two new/delete pairs in IOpenGLAsmShader.cpp and they are both wrong. + ==1555== Mismatched free() / delete / delete [] + ==1555== at 0x4C27FFF: operator delete(void*) (vg_replace_malloc.c:387) + ==1555== by 0x15800D32: nux::IOpenGLAsmVertexShader::Compile() (in /usr/lib/libnux-graphics-0.9.so.0.944.4) + + ==1555== Mismatched free() / delete / delete [] + ==1555== at 0x4C27FFF: operator delete(void*) (vg_replace_malloc.c:387) + ==1555== by 0x15800C42: nux::IOpenGLAsmPixelShader::Compile() (in /usr/lib/libnux-graphics-0.9.so.0.944.4) + + This is worth fixing at least to reduce the number of errors reported by + valgrind for unity/compiz. It takes up a significant amount of space in + valgrind logs and is trivial to fix. + To fix, replace both instances of: - delete ShaderSource; + delete ShaderSource; with: - delete[] ShaderSource; + delete[] ShaderSource;
** Changed in: nux Status: New => In Progress ** Changed in: nux Assignee: (unassigned) => Daniel van Vugt (vanvugt) ** Changed in: nux (Ubuntu) Status: New => In Progress ** Changed in: nux (Ubuntu) Assignee: (unassigned) => Daniel van Vugt (vanvugt) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/785118 Title: valgrind: mismatched new/delete in nux::IOpenGLAsm(Pixel|Vertex)Shader::Compile -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs