[cairo-commit] cairo-java/src/jni org_freedesktop_cairo_Surface.c, 1.15, 1.16

Dan Williams commit at pdx.freedesktop.org
Thu Mar 23 08:40:10 PST 2006


Committed by: dcbw

Update of /cvs/cairo/cairo-java/src/jni
In directory kemper:/tmp/cvs-serv7763/src/jni

Modified Files:
	org_freedesktop_cairo_Surface.c 
Log Message:
2006-03-23  Dan Williams  <dcbw at redhat.com>

    * src/jni/org_freedesktop_cairo_Surface.c
        - (cairo_surface_get_font_options): allocate the cairo_font_options
        structure first, since that's what cairo needs



Index: org_freedesktop_cairo_Surface.c
===================================================================
RCS file: /cvs/cairo/cairo-java/src/jni/org_freedesktop_cairo_Surface.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- org_freedesktop_cairo_Surface.c	28 Feb 2006 17:51:37 -0000	1.15
+++ org_freedesktop_cairo_Surface.c	23 Mar 2006 16:40:08 -0000	1.16
@@ -55,7 +55,7 @@
 /*
  * Class:     org_freedesktop_cairo_Surface
  * Method:    cairo_surface_finish
- * Signature: (Lorg/gnu/glib/Handle;)I
+ * Signature: (Lorg/gnu/glib/Handle;)V
  */
 JNIEXPORT void JNICALL Java_org_freedesktop_cairo_Surface_cairo_1surface_1finish
   (JNIEnv *env, jclass cls, jobject obj)
@@ -182,7 +182,7 @@
   (JNIEnv *env, jclass cls, jobject obj)
 {
 	cairo_surface_t *surface = (cairo_surface_t*)getPointerFromHandle(env, obj);
-	cairo_font_options_t *fo = NULL;
+	cairo_font_options_t *fo = cairo_font_options_create ();
 	cairo_surface_get_font_options(surface, fo);
 	return getHandleFromPointer(env, fo);
 }



More information about the cairo-commit mailing list