[PR #642] [MERGED] fix(renderer): add errdefer for hit grid #680

Closed
opened 2026-03-02 23:47:38 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opentui/pull/642
Author: @simonklee
Created: 2/7/2026
Status: Merged
Merged: 2/7/2026
Merged by: @kommander

Base: mainHead: renderer-resize


📝 Commits (1)

  • 5b343a2 fix(renderer): add errdefer for hit grid

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 packages/core/src/zig/renderer.zig (+1 -0)

📄 Description

If the second hit grid allocation fails, the first allocation is now properly freed via errdefer.

Similar to #640 and #641


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opentui/pull/642 **Author:** [@simonklee](https://github.com/simonklee) **Created:** 2/7/2026 **Status:** ✅ Merged **Merged:** 2/7/2026 **Merged by:** [@kommander](https://github.com/kommander) **Base:** `main` ← **Head:** `renderer-resize` --- ### 📝 Commits (1) - [`5b343a2`](https://github.com/anomalyco/opentui/commit/5b343a22ffc0d6f61981cfe25333dcd00e938999) fix(renderer): add errdefer for hit grid ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/core/src/zig/renderer.zig` (+1 -0) </details> ### 📄 Description If the second hit grid allocation fails, the first allocation is now properly freed via errdefer. Similar to #640 and #641 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 23:47:38 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/opentui#680
No description provided.