Loading

Paste #pxppnt3lh

  1. Index: order_sl.cpp
  2. ===================================================================
  3. --- order_sl.cpp        (revision 26785)
  4. +++ order_sl.cpp        (working copy)
  5. @@ -302,7 +302,11 @@
  6.          * Furthermore before savegame version 192 the actual content was always corrupt.
  7.          */
  8.         if (!_networking || _network_server || IsSavegameVersionBefore(192)) {
  9. -               _order_backup_pool.CleanPool();
  10. +               /* Note: We cannot use CleanPool since that skips part of the destructor and then leaks Orders */
  11. +               OrderBackup *ob;
  12. +               FOR_ALL_ORDER_BACKUPS(ob) {
  13. +                       delete ob;
  14. +               }
  15.         }
  16.  }

Comments