Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
Zipr Toolchain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open Source Software
Zipr Toolchain
Commits
10e26bd8
Commit
10e26bd8
authored
6 years ago
by
Matthew McGill
Browse files
Options
Downloads
Patches
Plain Diff
VariantID_t's destructor frees File_t objects
Former-commit-id: e9d0f8d6aa435a2edf62ef432b81c725a31c8cf4
parent
67c6b8ba
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libIRDB/include/core/variantid.hpp
+2
-1
2 additions, 1 deletion
libIRDB/include/core/variantid.hpp
libIRDB/src/core/variantid.cpp
+13
-0
13 additions, 0 deletions
libIRDB/src/core/variantid.cpp
with
15 additions
and
1 deletion
libIRDB/include/core/variantid.hpp
+
2
−
1
View file @
10e26bd8
...
...
@@ -29,7 +29,8 @@ class VariantID_t : public BaseObj_t
{
public:
VariantID_t
();
// create a Variant ID not in the database
VariantID_t
(
db_id_t
pid
);
// read from the DB
VariantID_t
(
db_id_t
pid
);
// read from the DB
~
VariantID_t
();
// Deletes the File_t objects -- beware dangling File_t* in FileIR_t objects!
bool
IsRegistered
();
bool
Register
();
// accesses DB
...
...
This diff is collapsed.
Click to expand it.
libIRDB/src/core/variantid.cpp
+
13
−
0
View file @
10e26bd8
...
...
@@ -38,6 +38,19 @@ VariantID_t::VariantID_t() :
}
VariantID_t
::~
VariantID_t
()
{
for
(
std
::
set
<
File_t
*>::
iterator
it
=
files
.
begin
();
it
!=
files
.
end
();
++
it
)
{
delete
*
it
;
}
}
void
VariantID_t
::
CreateTables
()
{
// note: this tables are now part of File_t.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment