Changeset 2657 for trunk


Ignore:
Timestamp:
Nov 4, 2011, 8:02:56 AM (13 years ago)
Author:
gah
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/vtkvis/ResponseQueue.h

    r2575 r2657  
    4343    virtual ~Response()
    4444    {
    45         if (_length > 0) {
    46             if (_allocType == DYNAMIC) {
    47                 free(_mesg);
    48             }
     45        if ((_length > 0) && (_mesg != NULL) && (_allocType == DYNAMIC)) {
     46            free(_mesg);
    4947        }
    5048    }
Note: See TracChangeset for help on using the changeset viewer.