Skip to content

Commit

Permalink
Bug 1331213: Add an API to drop a nsCSSValue in the stack. r=heycam
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
emilio committed Jan 17, 2017
1 parent 5b5243b commit ad32f40
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/style/gecko_bindings/bindings.rs
Expand Up @@ -750,6 +750,9 @@ extern "C" {
pub fn Gecko_CSSValue_GetArrayItem(css_value: nsCSSValueBorrowedMut,
index: i32) -> nsCSSValueBorrowedMut;
}
extern "C" {
pub fn Gecko_CSSValue_Drop(css_value: nsCSSValueBorrowedMut);
}
extern "C" {
pub fn Gecko_AddRefCSSValueSharedListArbitraryThread(aPtr:
*mut nsCSSValueSharedList);
Expand Down

0 comments on commit ad32f40

Please sign in to comment.