Skip to content

Fixes crash caused by GT仓库 dealloc - #690

Open
arguiot wants to merge 1 commit into
libgit2:masterfrom
arguiot:patch-1
Open

Fixes crash caused by GT仓库 dealloc#690
arguiot wants to merge 1 commit into
libgit2:masterfrom
arguiot:patch-1

Conversation

@arguiot

@arguiot arguiot commented May 16, 2019

Copy link
Copy Markdown

When the system calls -[GT仓库 dealloc] and the git_repository is empty, but still exists, the app crashes.

Here is a screenshot of the debug session:
Capture d’écran 2019-05-16 à 20 27 09

To fix this, the function is simply checking if the workdir property of the git_repository object isn't empty before cleaning the repo.

This PR fixes #689

@arguiot arguiot changed the title Fixes crash described by #689 Fixes crash caused by GT仓库 dealloc May 16, 2019
arguiot added a commit to arguiot/StudIO that referenced this pull request May 16, 2019
注册 for free to join this conversation on GitHub. Already have an account? 登录 to comment

标签

None yet

项目

None yet

Development

Successfully merging this pull request may close these issues.

GT仓库 dealloc crash

1 participant