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

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

@arguiotarguiot mentioned this pull request May 16, 2019
@arguiotarguiot changed the title Fixes crash described by #689Fixes crash caused by GTRepository deallocMay 16, 2019
arguiot added a commit to arguiot/StudIO that referenced this pull request May 16, 2019
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GTRepository dealloc crash

1 participant

@arguiot