mirror of
https://github.com/Tha14/toxic.git
synced 2025-12-07 08:36:35 +01:00
fix window cleanup bugs & give prompt its own cleanup func
This commit is contained in:
@@ -80,6 +80,13 @@ void line_info_cleanup(struct history *hst)
|
||||
free(tmp1);
|
||||
tmp1 = tmp2;
|
||||
}
|
||||
|
||||
int i;
|
||||
|
||||
for (i = 0; i < hst->queue_sz; ++i) {
|
||||
if (hst->queue[i])
|
||||
free(hst->queue[i]);
|
||||
}
|
||||
}
|
||||
|
||||
/* moves root forward and frees previous root */
|
||||
|
||||
Reference in New Issue
Block a user