[PR #803] fix: address link tracker clear decref imbalance #1576

Open
opened 2026-03-14 09:44:06 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opentui/pull/803
Author: @aarcamp
Created: 3/12/2026
Status: 🔄 Open

Base: mainHead: linktracker-clear-fix


📝 Commits (1)

  • e40d17d fix: address link tracker clear decref imbalance

📊 Changes

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

View changed files

📝 packages/core/src/zig/link.zig (+1 -5)

📄 Description

LinkTracker tracked one pool ref per link ID, but clear() decremented once per cell reference count. For links repeated across many cells this could cause one valid decref followed by many failing decref calls during buffer clear.


🔄 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/803 **Author:** [@aarcamp](https://github.com/aarcamp) **Created:** 3/12/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `linktracker-clear-fix` --- ### 📝 Commits (1) - [`e40d17d`](https://github.com/anomalyco/opentui/commit/e40d17ded84307a12e451de85970f7732a2080fd) fix: address link tracker clear decref imbalance ### 📊 Changes **1 file changed** (+1 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `packages/core/src/zig/link.zig` (+1 -5) </details> ### 📄 Description LinkTracker tracked one pool ref per link ID, but clear() decremented once per cell reference count. For links repeated across many cells this could cause one valid decref followed by many failing decref calls during buffer clear. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#1576
No description provided.