jcs
/amend
/amendments
/54
browser+commiter: Don't dispose of controls when closing
DisposeWindow should do this itself
jcs made amendment 54 over 2 years ago
--- browser.c Tue Jan 18 17:58:05 2022
+++ browser.c Sat Jan 22 12:35:00 2022
@@ -194,12 +194,8 @@ browser_close(struct browser *browser)
if (browser->repo)
repo_close(browser->repo);
- DisposeWindow(browser->win);
- DisposHandle(browser->diff_button);
- DisposHandle(browser->diff_scroller);
TEDispose(browser->diff_te);
- DisposHandle(browser->commit_list);
- DisposHandle(browser->file_list);
+ DisposeWindow(browser->win);
free(browser);
}
--- committer.c Wed Jan 19 17:39:10 2022
+++ committer.c Sat Jan 22 12:34:31 2022
@@ -156,12 +156,9 @@ committer_close(struct committer *committer)
if (committer->diffed_files != NULL)
free(committer->diffed_files);
- DisposeWindow(committer->win);
TEDispose(committer->log_te);
- DisposHandle(committer->log_scroller);
- DisposHandle(committer->diff_scroller);
- DisposHandle(committer->commit_button);
TEDispose(committer->diff_te);
+ DisposeWindow(committer->win);
free(committer);