jcs
/amend
/amendments
/17
committer: Try to release log TE hText after commit, not close
If we close the window without a commit, that might do something bad
jcs made amendment 17 over 3 years ago
--- committer.c Mon Oct 18 16:47:01 2021
+++ committer.c Sat Oct 23 21:17:40 2021
@@ -165,9 +165,6 @@ committer_close(struct committer *committer)
DisposHandle(committer->log_scroller);
DisposHandle(committer->diff_scroller);
DisposHandle(committer->commit_button);
-
- /* in case the hText got committed as a resource */
- ReleaseResource((*(committer->log_te))->hText);
TEDispose(committer->diff_te);
free(committer);
@@ -448,6 +445,7 @@ committer_commit(struct committer *committer)
(*(committer->diff_te))->hText, committer->diff_te_len);
HUnlock(committer->diff_te);
+ ReleaseResource((*(committer->log_te))->hText);
HUnlock(committer->log_te);
committer_status(NULL);