Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
3a76a1bc
Commit
3a76a1bc
authored
Mar 06, 2020
by
Claes Sjöfors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor memory leak fixes
parent
e32c20ea
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
19 deletions
+23
-19
xtt/lib/flow/src/flow_ctx.cpp
xtt/lib/flow/src/flow_ctx.cpp
+13
-18
xtt/lib/ge/src/ge_dyn.cpp
xtt/lib/ge/src/ge_dyn.cpp
+8
-0
xtt/lib/ge/src/ge_dyn.h
xtt/lib/ge/src/ge_dyn.h
+1
-0
xtt/lib/glow/src/glow_ctx.cpp
xtt/lib/glow/src/glow_ctx.cpp
+1
-1
No files found.
xtt/lib/flow/src/flow_ctx.cpp
View file @
3a76a1bc
...
...
@@ -104,6 +104,8 @@ FlowCtx::~FlowCtx()
move_clear
();
paste_clear
();
delete_all
();
if
(
scroll_data
)
free
(
scroll_data
);
for
(
int
i
=
0
;
i
<
a_nc
.
a_size
;
i
++
)
{
element
=
a_nc
.
a
[
i
];
...
...
@@ -1633,32 +1635,25 @@ FlowArrayElem* FlowCtx::get_conclass_from_name(char* name)
void
FlowCtx
::
remove_trace_objects
()
{
int
i
;
FlowArrayElem
*
e
;
for
(
i
=
0
;
i
<
a
.
a_size
;
i
++
)
{
if
(
a
.
a
[
i
]
->
type
()
==
flow_eObjectType_Node
&&
((
FlowNode
*
)
a
.
a
[
i
])
->
nc
->
group
==
flow_eNodeGroup_Trace
)
{
remove
(
a
.
a
[
i
]);
select_remove
(
a
.
a
[
i
]);
move_remove
(
a
.
a
[
i
]);
e
=
a
.
a
[
i
];
remove
(
e
);
select_remove
(
e
);
move_remove
(
e
);
delete
e
;
i
--
;
}
if
(
a
.
a
[
i
]
->
type
()
==
flow_eObjectType_Con
&&
((
FlowCon
*
)
a
.
a
[
i
])
->
cc
->
group
==
flow_eConGroup_Trace
)
{
remove
(
a
.
a
[
i
]);
select_remove
(
a
.
a
[
i
]);
move_remove
(
a
.
a
[
i
]);
i
--
;
}
}
for
(
i
=
0
;
i
<
a_nc
.
a_size
;
i
++
)
{
if
(((
FlowNodeClass
*
)
a_nc
.
a
[
i
])
->
group
==
flow_eNodeGroup_Trace
)
{
a_nc
.
remove
(
a_nc
.
a
[
i
]);
i
--
;
}
}
for
(
i
=
0
;
i
<
a_cc
.
a_size
;
i
++
)
{
if
(((
FlowConClass
*
)
a_cc
.
a
[
i
])
->
group
==
flow_eConGroup_Trace
)
{
a_cc
.
remove
(
a_cc
.
a
[
i
]);
e
=
a
.
a
[
i
];
remove
(
e
);
select_remove
(
e
);
move_remove
(
e
);
delete
e
;
i
--
;
}
}
...
...
xtt/lib/ge/src/ge_dyn.cpp
View file @
3a76a1bc
...
...
@@ -20640,6 +20640,14 @@ GePulldownMenu::GePulldownMenu(const GePulldownMenu& x)
}
}
GePulldownMenu
::~
GePulldownMenu
()
{
for
(
int
i
=
0
;
i
<
32
;
i
++
)
{
if
(
items_dyn
[
i
])
delete
items_dyn
[
i
];
}
}
void
GePulldownMenu
::
get_attributes
(
attr_sItem
*
attrinfo
,
int
*
item_count
)
{
int
i
=
*
item_count
;
...
...
xtt/lib/ge/src/ge_dyn.h
View file @
3a76a1bc
...
...
@@ -2872,6 +2872,7 @@ public:
GePulldownMenu
(
GeDyn
*
e_dyn
);
GePulldownMenu
(
const
GePulldownMenu
&
x
);
~
GePulldownMenu
();
void
get_attributes
(
attr_sItem
*
attrinfo
,
int
*
item_count
);
void
save
(
std
::
ofstream
&
fp
);
void
open
(
std
::
ifstream
&
fp
);
...
...
xtt/lib/glow/src/glow_ctx.cpp
View file @
3a76a1bc
...
...
@@ -909,7 +909,7 @@ void GlowCtx::paste_execute()
void
GlowCtx
::
nav_zoom
()
{
if
(
nodraw
)
if
(
nodraw
||
no_nav
)
return
;
if
(
ctx_type
==
glow_eCtxType_Curve
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment