Skip to content

Fixes crash caused by GTRepository dealloc - #690

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

Fixes crash caused by GTRepository 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 -[GTRepository 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 May 16, 2019
arguiot added a commit to arguiot/StudIO that referenced this pull request May 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant