Commit 602a1433 authored by Joseph Mirabel's avatar Joseph Mirabel

Fix memory leak.

parent e9424349
......@@ -81,7 +81,8 @@ namespace hpp {
void HppManipulationWidgetsPlugin::loadRobotModel(gepetto::gui::DialogLoadRobot::RobotDefinition rd)
{
try {
client ()->robot ()->getCurrentConfig();
hpp::floatSeq_var q = client ()->robot ()->getCurrentConfig();
(void)q;
} catch (hpp::Error const& e) {
client ()->robot ()->createRobot (to_corba("composite").in());
}
......@@ -101,7 +102,8 @@ namespace hpp {
void HppManipulationWidgetsPlugin::loadEnvironmentModel(gepetto::gui::DialogLoadEnvironment::EnvironmentDefinition ed)
{
try {
client ()->robot ()->getCurrentConfig();
hpp::floatSeq_var q = client ()->robot ()->getCurrentConfig();
(void)q;
} catch (hpp::Error const& e) {
client ()->robot ()->createRobot (to_corba("composite").in());
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment