Changeset 7438


Ignore:
Timestamp:
2004-05-26T14:38:19+12:00 (20 years ago)
Author:
mdewsnip
Message:

(Human Info) Delete char* variables with delete[] variable instead of delete variable, and use g_EmptyText instead of "" for text_ts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/cgiwrapper.cpp

    r3396 r7438  
    196196  char *efile = error_file.getcstr();
    197197  ifstream errin (efile);
    198   delete efile;
     198  delete []efile;
    199199  if (errin) {
    200200    errortext += "The error log, " + error_file + ", contains the\n";
     
    227227  char *efile = error_file.getcstr();
    228228  ifstream errin (efile);
    229   delete efile;
     229  delete []efile;
    230230  if (errin) {
    231231    errortext += "The error log, " + error_file + ", contains the\n";
     
    256256  char *efile = error_file.getcstr();
    257257  ifstream errin (efile);
    258   delete efile;
     258  delete []efile;
    259259  if (errin) {
    260260    errortext += "The error log, " + error_file + ", contains the\n";
     
    463463  // get the query string if it is not being run as a fastcgi
    464464  // script
    465   text_t argstr = "";
     465  text_t argstr = g_EmptyText;
    466466  cgiargsclass args;
    467467  char *aURIStr;
     
    544544    char *eout = error_file.getcstr();
    545545    ofstream errout (eout, ios::app);
    546     delete eout;
     546    delete []eout;
    547547    if (!recpt.init(errout)) {
    548548      // an error occurred during the initialisation
     
    594594    aURIStr = FCGX_GetParam("QUERY_STRING", fcgienvp);
    595595    if (aURIStr != NULL) argstr = aURIStr;
    596     else argstr = "";
     596    else argstr = g_EmptyText;
    597597      }
    598598    }
     
    650650      char *eout = error_file.getcstr();
    651651      ofstream errout (eout, ios::app);
    652       delete eout;
     652      delete []eout;
    653653
    654654#if defined(__WIN32__) && defined(GSDL_USE_IOS_H)
Note: See TracChangeset for help on using the changeset viewer.