Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.1:Update
LabPlot
LabPlot-undefined-code.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File LabPlot-undefined-code.patch of Package LabPlot
--- liborigin-20070926/OPJFile.cpp +++ liborigin-20070926/OPJFile.cpp @@ -477,7 +477,7 @@ fread(stmp,valuesize,1,f); fprintf(debug,"%s ",stmp); SPREADSHEET[spread].column[(current_col-1)].odata.push_back(originData(stmp)); - delete stmp; + delete [] stmp; } } } // else @@ -1040,7 +1040,7 @@ stmp[0]='\0'; SPREADSHEET[spread].column[(current_col-1)].odata.push_back(originData(stmp)); fprintf(debug,"%s ",stmp); - delete stmp; + delete [] stmp; } } else //Text @@ -1051,7 +1051,7 @@ stmp[0]='\0'; SPREADSHEET[spread].column[(current_col-1)].odata.push_back(originData(stmp)); fprintf(debug,"%s ",stmp); - delete stmp; + delete [] stmp; } } @@ -1168,7 +1168,7 @@ fread(stmp,size,1,f); if(0==strcmp(stmp,"ResultsLog")) { - delete stmp; + delete [] stmp; fseek(f,1,SEEK_CUR); fread(&size,4,1,f); if(IsBigEndian()) SwapBytes(size); @@ -1177,7 +1177,7 @@ fread(stmp,size,1,f); resultsLog=stmp; fprintf(debug,"Results Log: %s\n", resultsLog.c_str()); - delete stmp; + delete [] stmp; break; } else @@ -1185,7 +1185,7 @@ NOTE.push_back(note(stmp)); NOTE.back().objectID=objectIndex; objectIndex++; - delete stmp; + delete [] stmp; fseek(f,1,SEEK_CUR); fread(&size,4,1,f); if(IsBigEndian()) SwapBytes(size); @@ -1196,7 +1196,7 @@ stmp[labellen-1]='\0'; fread(stmp,labellen-1,1,f); NOTE.back().label=stmp; - delete stmp; + delete [] stmp; fseek(f,1,SEEK_CUR); } stmp = new char[size-labellen+1]; @@ -1205,7 +1205,7 @@ fprintf(debug,"NOTE %zd NAME: %s\n", NOTE.size(), NOTE.back().name.c_str()); fprintf(debug,"NOTE %zd LABEL: %s\n", NOTE.size(), NOTE.back().label.c_str()); fprintf(debug,"NOTE %zd TEXT:\n%s\n", NOTE.size(), NOTE.back().text.c_str()); - delete stmp; + delete [] stmp; fseek(f,1,SEEK_CUR); } } @@ -1323,7 +1323,7 @@ stmp[sec_size]='\0'; fread(stmp,sec_size,1,f); SPREADSHEET[spread].column[col_index].command=stmp; - delete stmp; + delete [] stmp; } //section_body_2_size @@ -1452,7 +1452,7 @@ if(col_index!=-1) SPREADSHEET[spread].column[col_index].comment=comment; LAYER+=comm_size+0x1; - delete comment; + delete [] comment; } fseek(f,LAYER,SEEK_SET); int ntmp; @@ -1573,7 +1573,7 @@ stmp[sec_size]='\0'; fread(stmp,sec_size,1,f); EXCEL[iexcel].sheet[isheet].column[col_index].command=stmp; - delete stmp; + delete [] stmp; } //section_body_2_size @@ -1702,7 +1702,7 @@ if(col_index!=-1) EXCEL[iexcel].sheet[isheet].column[col_index].comment=comment; LAYER+=comm_size+0x1; - delete comment; + delete [] comment; } fseek(f,LAYER,SEEK_SET); int ntmp; @@ -1823,7 +1823,7 @@ stmp[sec_size]='\0'; fread(stmp,sec_size,1,f); MATRIX[idx].command=stmp; - delete stmp; + delete [] stmp; } //section_body_2_size
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor