[cairo-commit] cairo-java/src/jni org_freedesktop_cairo_Surface.c, 1.5, 1.6

Jeffrey Morgan commit at pdx.freedesktop.org
Fri May 6 07:58:44 PDT 2005


Committed by: kuzman

Update of /cvs/cairo/cairo-java/src/jni
In directory gabe:/tmp/cvs-serv24750/src/jni

Modified Files:
	org_freedesktop_cairo_Surface.c 
Log Message:
ongoing API cleanup

Index: org_freedesktop_cairo_Surface.c
===================================================================
RCS file: /cvs/cairo/cairo-java/src/jni/org_freedesktop_cairo_Surface.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- org_freedesktop_cairo_Surface.c	2 Apr 2005 11:46:23 -0000	1.5
+++ org_freedesktop_cairo_Surface.c	6 May 2005 14:58:40 -0000	1.6
@@ -38,8 +38,9 @@
 JNIEXPORT void JNICALL Java_org_freedesktop_cairo_Surface_cairo_1surface_1reference
   (JNIEnv *env, jclass cls, jobject obj)
 {
-	cairo_surface_t *surface = (cairo_surface_t*)getPointerFromHandle(env, obj);
+	cairo_surface_t *surface = g_new0(cairo_surface_t, 1);
 	cairo_surface_reference(surface);
+	updateHandle(env, obj, surface);
 }
 
 /*




More information about the cairo-commit mailing list