[gjs] cairo-context: fix use of cairo_destroy()
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] cairo-context: fix use of cairo_destroy()
- Date: Tue, 27 Oct 2015 23:31:32 +0000 (UTC)
commit b08735bf67420dee0415893c13a8d271b0f39e52
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Oct 27 16:30:30 2015 -0700
cairo-context: fix use of cairo_destroy()
Pointed out by Owen Taylor <otaylor redhat com> and acked by Johan
Dahlin <johan gnome org>
https://bugzilla.gnome.org/show_bug.cgi?id=623330
modules/cairo-context.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/modules/cairo-context.cpp b/modules/cairo-context.cpp
index 8e06d16..74dcef6 100644
--- a/modules/cairo-context.cpp
+++ b/modules/cairo-context.cpp
@@ -1038,7 +1038,7 @@ context_to_g_argument(JSContext *context,
if (!cr)
return JS_FALSE;
if (transfer == GI_TRANSFER_EVERYTHING)
- cairo_destroy(cr);
+ cairo_reference(cr);
arg->v_pointer = cr;
return JS_TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]