Commit 3fd2a761 authored by loring's avatar loring
Browse files

fix leaking rpc attributes

RPCExecutor<PrepareUpdatePlotAttsRPC>::Execute(PrepareUpdatePlotAttsRPC *rpc)
was leaking plot attributes. This fix gives ownership of the attributes to the
UpdatePlotAttsRPC.



git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@23241 18c085ea-50e0-402c-830e-de6fd14e8384
parent 74255f08
......@@ -210,12 +210,20 @@ UpdatePlotAttsRPC::~UpdatePlotAttsRPC()
// Programmer: Hank Childs
// Creation: November 30, 2001
//
// Modifications:
// Burlen Loring, Tue Apr 29 09:34:17 PDT 2014
// fix leaking AttributeSubject object
//
// ****************************************************************************
void
UpdatePlotAttsRPC::SetAtts(AttributeSubject *a)
{
// if (atts)
// delete atts;
if (atts == a)
return;
if (atts)
delete atts;
atts = a;
Select(1, (void*)atts);
}
......
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