@@ -341,11 +341,21 @@ begin |
| 341 |
end; |
341 |
end; |
| 342 |
|
342 |
|
| 343 |
destructor TTrackerGrid.Destroy; |
343 |
destructor TTrackerGrid.Destroy; |
|
|
344 |
var |
|
|
345 |
Q: TUndoRedoAction; |
| 344 |
begin |
346 |
begin |
| 345 |
inherited Destroy; |
347 |
// There's an FPC version which includes a bugged destructor for TDeque, in |
|
|
348 |
// which it will segfault when freeing an empty TDeque. To avoid this, we put |
|
|
349 |
// an element in it first. TODO: Remove this ridiculous hack once the fix gets |
|
|
350 |
// released to the stable channel. |
|
|
351 |
Q.After := nil; |
|
|
352 |
Q.Before := nil; |
|
|
353 |
Performed.PushFront(Q); |
| 346 |
|
354 |
|
| 347 |
Performed.Free; |
355 |
Performed.Free; |
| 348 |
Recall.Free; |
356 |
Recall.Free; |
|
|
357 |
|
|
|
358 |
inherited; |
| 349 |
end; |
359 |
end; |
| 350 |
|
360 |
|
| 351 |
procedure TTrackerGrid.Paint; |
361 |
procedure TTrackerGrid.Paint; |