Skip to content
Snippets Groups Projects
Commit fbf047ba authored by scott snyder's avatar scott snyder
Browse files

SGTools: Fix potential dangling proxy pointer.

If a proxy was registered using only addToStore such that the first call
was for a CLID different than proxy->clID(), then the primary_sgkey
recorded is based on the CLID used for this first record, not
proxy->clID().  [This ordering used to happen when ProxyProviderSvc
initialized a proxy.]  This in turn would confuse removeProxy when a proxy
was to be actually deleted, causing a dangling reference to the deleted
proxy to remain in m_keyMap.  This could then lead to a crash in overwrite().
This was observed in a derivation workflow.  Fix this.



Former-commit-id: b7782968
parent a6efc732
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment