diff --git a/common/dialogs/git/dialog_git_repository.cpp b/common/dialogs/git/dialog_git_repository.cpp index 9dafcf9e25..ee3a5e237a 100644 --- a/common/dialogs/git/dialog_git_repository.cpp +++ b/common/dialogs/git/dialog_git_repository.cpp @@ -307,7 +307,8 @@ void DIALOG_GIT_REPOSITORY::OnTestClick( wxCommandEvent& event ) callbacks.payload = this; - git_remote_create_with_fetchspec( &remote, m_repository, "origin", m_txtURL->GetValue(), + wxString txtURL = m_txtURL->GetValue(); + git_remote_create_with_fetchspec( &remote, m_repository, "origin", txtURL.ToStdString().c_str(), "+refs/heads/*:refs/remotes/origin/*" ); if( git_remote_connect( remote, GIT_DIRECTION_FETCH, &callbacks, nullptr, nullptr ) != GIT_OK ) diff --git a/kicad/project_tree.cpp b/kicad/project_tree.cpp index 1d18ce334f..d4b95abd1d 100644 --- a/kicad/project_tree.cpp +++ b/kicad/project_tree.cpp @@ -62,6 +62,7 @@ PROJECT_TREE::PROJECT_TREE( PROJECT_TREE_PANE* parent ) : PROJECT_TREE::~PROJECT_TREE() { delete m_imageList; + delete m_statusImageList; } diff --git a/kicad/project_tree_pane.cpp b/kicad/project_tree_pane.cpp index 232eb6f08d..0d8ede0e27 100644 --- a/kicad/project_tree_pane.cpp +++ b/kicad/project_tree_pane.cpp @@ -2004,8 +2004,8 @@ void PROJECT_TREE_PANE::onGitCommit( wxCommandEvent& aEvent ) git_repository_config( &config, repo ); // Read relevant data from the git config - const char* authorName = nullptr; - const char* authorEmail = nullptr; + wxString authorName; + wxString authorEmail; // Read author name git_config_entry* name_c = nullptr;