dtinfo: Extra fixes for previous believed fixed things (coverity)
authorPeter Howkins <flibble@users.sf.net>
Tue, 24 Apr 2018 02:25:54 +0000 (03:25 +0100)
committerPeter Howkins <flibble@users.sf.net>
Tue, 24 Apr 2018 02:25:54 +0000 (03:25 +0100)
cde/programs/dtinfo/DtMmdb/hmphf/sorter.C
cde/programs/dtinfo/dtinfo/src/Agents/OutlineListViewMotif.C

index 02d8a71460a3bf997c4d60e3c1eeaeceda4d7556..6a279ef6a8b97d14ee6d769d3ccdb898c19ef1af 100644 (file)
@@ -108,7 +108,7 @@ sorter::~sorter()
 {
    int i;
    for ( i=0; i<NUM_BUCKETS; delete v_bucket_array[i++] );
-   delete v_bucket_array;
+   delete [] v_bucket_array;
 
    for ( i=0; i<v_no_unique_keys; delete v_unique_keys[i++] );
    delete [] v_unique_keys;
index 282032bf3f320d73f4926caf561535ec9718ed60..4735f0efc62b78abeaa7cdb7b1d9ada01b5087b2 100644 (file)
@@ -786,7 +786,7 @@ OutlineListView::update_list(OutlineList *list, BitHandle handle)
   ItemCount (visible_count, args);
   Set (args);
 
-  delete table;
+  delete [] table;
   delete [] selected_list;
 }
 
@@ -1151,7 +1151,7 @@ OutlineListView::activate (WCallback *wcb)
                           table, sel_list,
                           oe->level() + 1);
           AddItemsUnselected (table, subcount, lcs->item_position + 1);
-          delete table;
+          delete [] table;
           delete [] sel_list;
 
           // Turn the wait cursor off if it was on.