130 |
height = gdk_pixbuf_get_height (pixbuf); |
height = gdk_pixbuf_get_height (pixbuf); |
131 |
rowstride = gdk_pixbuf_get_rowstride (pixbuf); |
rowstride = gdk_pixbuf_get_rowstride (pixbuf); |
132 |
|
|
|
/* Must release the GDK lock before allocating memory through the |
|
|
JVM, since some JVMs use the same lock for allocations and |
|
|
finalization. Deadlock can occur on those JVMs. */ |
|
|
gdk_threads_leave (); |
|
|
|
|
133 |
result_array = (*env)->NewIntArray (env, (width * height)); |
result_array = (*env)->NewIntArray (env, (width * height)); |
134 |
|
|
|
gdk_threads_enter (); |
|
|
|
|
135 |
dst = result_array_iter = |
dst = result_array_iter = |
136 |
(*env)->GetIntArrayElements (env, result_array, NULL); |
(*env)->GetIntArrayElements (env, result_array, NULL); |
137 |
|
|