Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
a796ab55
Commit
a796ab55
authored
Apr 19, 2010
by
Oswald Buddenhagen
Browse files
don't leak ProFile objects
just for debugging ...
parent
84a6d42f
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/manual/proparser/main.cpp
View file @
a796ab55
...
...
@@ -64,8 +64,10 @@ static int evaluate(const QString &fileName, const QString &in_pwd, const QStrin
ProFile
*
pro
;
if
(
!
(
pro
=
visitor
.
parsedProFile
(
fileName
)))
return
2
;
if
(
!
visitor
.
accept
(
pro
))
if
(
!
visitor
.
accept
(
pro
))
{
delete
pro
;
return
2
;
}
if
(
visitor
.
templateType
()
==
ProFileEvaluator
::
TT_Subdirs
)
{
QStringList
subdirs
=
visitor
.
values
(
QLatin1String
(
"SUBDIRS"
));
...
...
@@ -106,6 +108,7 @@ static int evaluate(const QString &fileName, const QString &in_pwd, const QStrin
}
}
delete
pro
;
return
0
;
}
...
...
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