Loading media/mca/filterfw/native/core/shader_program.cpp +5 −1 Original line number Diff line number Diff line Loading @@ -1028,7 +1028,11 @@ bool ShaderProgram::SetAttributeValues(ProgramVar var, attrib.values = data_cpy; attrib.owned_data = data_cpy; // Marks this for deletion later on return StoreAttribute(attrib); if (StoreAttribute(attrib)) return true; // If storing this failed, then it won't be deleted on its own. delete[] data_cpy; return false; } bool ShaderProgram::StoreAttribute(VertexAttrib attrib) { Loading Loading
media/mca/filterfw/native/core/shader_program.cpp +5 −1 Original line number Diff line number Diff line Loading @@ -1028,7 +1028,11 @@ bool ShaderProgram::SetAttributeValues(ProgramVar var, attrib.values = data_cpy; attrib.owned_data = data_cpy; // Marks this for deletion later on return StoreAttribute(attrib); if (StoreAttribute(attrib)) return true; // If storing this failed, then it won't be deleted on its own. delete[] data_cpy; return false; } bool ShaderProgram::StoreAttribute(VertexAttrib attrib) { Loading