diff options
| author | Rusty Wagner <rusty@vector35.com> | 2019-05-10 16:57:44 -0400 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2019-05-10 16:57:44 -0400 |
| commit | e5f190cddaaeac84f8a6ec733c2c11c17ec7f927 (patch) | |
| tree | 92393a4d82c32e0abe9843f29dae769133a933a5 /pluginmanager.cpp | |
| parent | 181cced4e6fe3a8b6e967cedc4ff84b53b3c8c92 (diff) | |
Fix some double free bugs in API
Diffstat (limited to 'pluginmanager.cpp')
| -rw-r--r-- | pluginmanager.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/pluginmanager.cpp b/pluginmanager.cpp index 95c8ea15..be0d0d9d 100644 --- a/pluginmanager.cpp +++ b/pluginmanager.cpp @@ -108,10 +108,6 @@ Repository::Repository(BNRepository* r) m_object = r; } -Repository::~Repository() -{ - BNFreeRepository(m_object); -} string Repository::GetUrl() const { RETURN_STRING(BNRepositoryGetUrl(m_object)); @@ -158,29 +154,20 @@ string Repository::GetFullPath() const } RepositoryManager::RepositoryManager(const string& enabledPluginsPath) - :m_core(false) { m_object = BNCreateRepositoryManager(enabledPluginsPath.c_str()); } RepositoryManager::RepositoryManager(BNRepositoryManager* mgr) - :m_core(false) { m_object = mgr; } RepositoryManager::RepositoryManager() - :m_core(true) { m_object = BNGetRepositoryManager(); } -RepositoryManager::~RepositoryManager() -{ - if (!m_core) - BNFreeRepositoryManager(m_object); -} - bool RepositoryManager::CheckForUpdates() { return BNRepositoryManagerCheckForUpdates(m_object); |
