mirror of
https://github.com/NickeManarin/ScreenToGif.git
synced 2026-04-25 23:25:52 +03:00
[PR #946] [CLOSED] refactor: Improve codes of BaseCapture.cs #1267
Labels
No labels
copy cats
duplicated
future feature
pull-request
⬜ Accepted
⬜ Completed
⬜ Help Wanted 💪
⬜ In Progress
⬜ Missing Details
⬜ Pending
⬜ Waiting For Answer ⏳
🆕 feature preview
🔷 Bug 🐛
🔷 Out Of Scope
🔷 Out Of Scope
🔷 Question
🔷Enhancement
🔷Enhancement
🔷Invalid / External
🔷Knowledge Base
🔷Won't Fix
🕑 High
🕑 High
🕑 High
🕕 Medium
🕙 Low
🕛 Critical
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ScreenToGif#1267
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/NickeManarin/ScreenToGif/pull/946
Author: @SEWeiTung
Created: 7/17/2021
Status: ❌ Closed
Base:
dev← Head:dev📝 Commits (1)
9f291b8refactor: Improve codes of BaseCapture.cs📊 Changes
1 file changed (+53 additions, -15 deletions)
View changed files
📝
ScreenToGif/Capture/BaseCapture.cs(+53 -15)📄 Description
Add a protected Dispose to controll whether it's manually called
or called by destructor function, because we don't need to GC again.
Release all the managed things.
Remove "Wait()" for "~BaseCapture()", we CANNOT block the finalizer
thread running background. Because when come to it, the object itself is
broken and useless, we don't need to care about the result, so directly
calling "Dispose(false)" is enough.
Auto reformat codes and save to UTF-8 (without BOM).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.