Ignore:
Timestamp:
Jul 16, 2014, 12:33:10 PM (10 years ago)
Author:
ldelgass
Message:

If VTK fails to load a DataSet?, remove dataset name from hash table. Prevents
subsequent crashes when trying to use a NULL DataSet?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/vtkvis/RendererCmd.cpp

    r4422 r4505  
    47574757    g_renderer->addDataSet(name);
    47584758    if (!g_renderer->setData(name, data, nbytes)) {
     4759        free(data);
     4760        g_renderer->deleteDataSet(name);
    47594761        USER_ERROR("Failed to load data for dataset \"%s\"", name);
    4760         free(data);
    47614762        return TCL_ERROR;
    47624763    }
Note: See TracChangeset for help on using the changeset viewer.