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
66c4662d
Commit
66c4662d
authored
Dec 03, 2018
by
Christoffer Ackelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
QT: rt_statusmon should free allocated memory.
parent
fb9be143
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
xtt/exe/rt_statusmon/qt/rt_statusmon_qt.cpp
xtt/exe/rt_statusmon/qt/rt_statusmon_qt.cpp
+7
-3
No files found.
xtt/exe/rt_statusmon/qt/rt_statusmon_qt.cpp
View file @
66c4662d
...
...
@@ -61,8 +61,13 @@ static void usage()
$HOME/rt_statusmon.dat : setup file with requested nodes
\n\n
"
);
}
CoXHelpQt
*
xhelp
;
NodelistQt
*
nl
;
static
void
statusmon_close
(
void
*
ctx
)
{
delete
nl
;
delete
xhelp
;
debug_print
(
"Shutting down...
\n
"
);
exit
(
0
);
}
...
...
@@ -115,11 +120,10 @@ int main(int argc, char* argv[])
setlocale
(
LC_NUMERIC
,
"POSIX"
);
setlocale
(
LC_TIME
,
"en_US"
);
CoXHelp
*
xhelp
=
new
CoXHelpQt
(
0
,
0
,
xhelp_eUtility_Xtt
,
&
sts
);
xhelp
=
new
CoXHelpQt
(
0
,
0
,
xhelp_eUtility_Xtt
,
&
sts
);
CoXHelp
::
set_default
(
xhelp
);
Nodelist
*
nl
=
new
NodelistQt
(
0
,
0
,
"Status Monitor"
,
mode
,
view_descr
,
msgw_ePop_No
,
&
sts
);
nl
=
new
NodelistQt
(
0
,
0
,
"Status Monitor"
,
mode
,
view_descr
,
msgw_ePop_No
,
&
sts
);
nl
->
close_cb
=
statusmon_close
;
nl
->
set_scantime
(
3
);
...
...
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