mirror of
https://github.com/servo/servo.git
synced 2025-06-24 17:14:33 +01:00
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:
parent
5b5243b8af
commit
ad32f40e13
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue