mirror of
https://github.com/servo/servo.git
synced 2025-06-24 00:54:32 +01:00
stylo: Don't leak the nsIAtom we get back from Gecko_GetXMLLangValue.
This commit is contained in:
parent
f3dcef8c81
commit
581cefccfe
1 changed files with 1 additions and 1 deletions
|
@ -694,7 +694,7 @@ impl<'le> PresentationalHintsSynthetizer for GeckoElement<'le> {
|
|||
let global_style_data = &*GLOBAL_STYLE_DATA;
|
||||
|
||||
let pdb = PropertyDeclarationBlock::with_one(
|
||||
PropertyDeclaration::XLang(SpecifiedLang(Atom::from(ptr))),
|
||||
PropertyDeclaration::XLang(SpecifiedLang(unsafe { Atom::from_addrefed(ptr) })),
|
||||
Importance::Normal
|
||||
);
|
||||
let arc = Arc::new(global_style_data.shared_lock.wrap(pdb));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue