Commit 740630f
committed
fix: disconnect lineEdit in AuthPassword destructor
1. Added disconnect call for m_lineEdit from this object in destructor
2. Prevents potential lambda function access to deleted this pointer
3. Ensures clean signal-slot disconnection during object destruction
4. Avoids use-after-free crashes when signals are emitted after object
deletion
Influence:
1. Test password authentication widget destruction scenarios
2. Verify no crashes when closing authentication dialogs
3. Test signal emission handling during widget lifecycle
4. Validate memory safety in authentication flow
fix: 在AuthPassword析构函数中断开lineEdit连接
1. 在析构函数中添加了m_lineEdit与当前对象的断开连接调用
2. 防止lambda函数访问已删除的this指针
3. 确保对象销毁时信号槽连接的清理
4. 避免对象删除后信号发射导致的use-after-free崩溃
Influence:
1. 测试密码认证小部件的销毁场景
2. 验证关闭认证对话框时不会出现崩溃
3. 测试小部件生命周期中的信号发射处理
4. 验证认证流程中的内存安全性
pms: BUG-3411271 parent 1fabba7 commit 740630f
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
78 | 80 | | |
79 | 81 | | |
80 | 82 | | |
| |||
0 commit comments