Bug 1331213: Add an API to drop a nsCSSValue in the stack. r=heycam

The getter function may create an nsCSSValue with allocated stuff, and we don't
want to leak it.

MozReview-Commit-ID: DYkUD8CW88E
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
This commit is contained in:
Emilio Cobos Álvarez 2017-01-15 17:07:38 +01:00
parent 5b5243b8af
commit ad32f40e13
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -750,6 +750,9 @@ extern "C" {
pub fn Gecko_CSSValue_GetArrayItem(css_value: nsCSSValueBorrowedMut, pub fn Gecko_CSSValue_GetArrayItem(css_value: nsCSSValueBorrowedMut,
index: i32) -> nsCSSValueBorrowedMut; index: i32) -> nsCSSValueBorrowedMut;
} }
extern "C" {
pub fn Gecko_CSSValue_Drop(css_value: nsCSSValueBorrowedMut);
}
extern "C" { extern "C" {
pub fn Gecko_AddRefCSSValueSharedListArbitraryThread(aPtr: pub fn Gecko_AddRefCSSValueSharedListArbitraryThread(aPtr:
*mut nsCSSValueSharedList); *mut nsCSSValueSharedList);