harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r453231 - /incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/native/gl/shared/JPEGEncoder/JpegEncoder.c
Date Thu, 05 Oct 2006 13:17:43 GMT
Author: hindessm
Date: Thu Oct  5 06:17:42 2006
New Revision: 453231

URL: http://svn.apache.org/viewvc?view=rev&rev=453231
Log:
Fixed compilation errors with this (unused) code.

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/native/gl/shared/JPEGEncoder/JpegEncoder.c

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/native/gl/shared/JPEGEncoder/JpegEncoder.c
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/native/gl/shared/JPEGEncoder/JpegEncoder.c?view=diff&rev=453231&r1=453230&r2=453231
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/native/gl/shared/JPEGEncoder/JpegEncoder.c
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/native/gl/shared/JPEGEncoder/JpegEncoder.c
Thu Oct  5 06:17:42 2006
@@ -197,7 +197,7 @@
     //-- create compress struct
     cinfo = malloc(sizeof(struct jpeg_compress_struct));
     if (!cinfo) {
-        throwNewOutOfMemoryError("Unable to allocate memory for IJG structures");
+        throwNewOutOfMemoryError(env, "Unable to allocate memory for IJG structures");
         return 0;
     }
 
@@ -205,7 +205,7 @@
     err_mgr = malloc(sizeof(enc_error_mgr));
     if (!err_mgr) {
         free(cinfo);
-        throwNewOutOfMemoryError("Unable to allocate memory for IJG structures");
+        throwNewOutOfMemoryError(env, "Unable to allocate memory for IJG structures");
         return 0;
     }
     
@@ -221,7 +221,7 @@
     if (!dest_mgr) {
         free(cinfo);
         free(err_mgr);
-        throwNewOutOfMemoryError("Unable to allocate memory for IJG structures");
+        throwNewOutOfMemoryError(env, "Unable to allocate memory for IJG structures");
         return 0;
     }
     cinfo->dest = dest_mgr;
@@ -232,7 +232,7 @@
         free(cinfo);
         free(err_mgr);
         free(dest_mgr);
-        throwNewOutOfMemoryError("Unable to allocate memory for IJG structures");
+        throwNewOutOfMemoryError(env, "Unable to allocate memory for IJG structures");
         return 0;
     }
     cinfo->client_data = client_data;
@@ -243,7 +243,7 @@
         free(err_mgr);
         free(dest_mgr);
         free(client_data);
-        throwNewOutOfMemoryError("Unable to allocate memory for IJG structures");
+        throwNewOutOfMemoryError(env, "Unable to allocate memory for IJG structures");
         return 0;
     }
     dest_mgr->next_output_byte = client_data->jpeg_buffer;
@@ -327,7 +327,7 @@
     }
     cdata->ios = (*env)->NewGlobalRef(env, iosObj);
     if (cdata->ios == NULL) {
-        throwNewOutOfMemoryError("Unable to allocate memory for IJG structures");
+        throwNewOutOfMemoryError(env, "Unable to allocate memory for IJG structures");
         return;
     }
     cinfo->dest->next_output_byte = cdata->jpeg_buffer;
@@ -360,7 +360,7 @@
     row_pointer = (JSAMPROW) malloc(width * numBands);
 
     if (!row_pointer) {
-        throwNewOutOfMemoryError("Unable to allocate memory for IJG structures");
+        throwNewOutOfMemoryError(env, "Unable to allocate memory for IJG structures");
         return FALSE;
     }
 



Mime
View raw message