зеркало из https://github.com/mozilla/gecko-dev.git
Bug 349895, hold strong reference to result in case it goes away
This commit is contained in:
Родитель
93e2f635fa
Коммит
daae1bcfcb
|
@ -1336,7 +1336,10 @@ struct SubstituteTextClosure {
|
|||
SubstituteTextClosure(nsIXULTemplateResult* aResult, nsAString& aString)
|
||||
: result(aResult), str(aString) {}
|
||||
|
||||
nsIXULTemplateResult* result;
|
||||
// some datasources are lazily initialized or modified while values are
|
||||
// being retrieved, causing results to be removed. Due to this, hold a
|
||||
// strong reference to the result.
|
||||
nsCOMPtr<nsIXULTemplateResult> result;
|
||||
nsAString& str;
|
||||
};
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче