aui-framework / aui-framework/aui

Cycling smart pointers when creating lambda signal-slot connection

Open
#78 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
598
Forks
44
Avg merge
17h 56m
Merged PRs (30d)
3

Description

```cpp
auto surface = _new ...;
connect(clicked, surface, [surface]() {
...
});
```

In this example, `surface` is referenced in signal-slot connection lambda, causing the surface to never destroy by itself.

Contributor guide

Open the contributing guide

Research direction

The issue provides no repository files or tests; begin by locating the connect implementation and the signal-slot lambda ownership path shown in the example. Reproduce the retained-surface behavior, then verify that the connection no longer keeps the surface alive after its intended owners are gone.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.