fix invalid free
This commit is contained in:
@@ -45,7 +45,8 @@ pub const AppState = struct {
|
||||
} else null;
|
||||
|
||||
if (index) |i| {
|
||||
tab.childrenLoaded.observers.swapRemove(i);
|
||||
const removed = tab.childrenLoaded.observers.swapRemove(i);
|
||||
self.allocator.destroy(removed);
|
||||
}
|
||||
|
||||
//TODO: remove from tabs
|
||||
|
||||
Reference in New Issue
Block a user