equal
deleted
inserted
replaced
159 } else { |
159 } else { |
160 // If no LUT needed, must be ByteGray src. If we have not |
160 // If no LUT needed, must be ByteGray src. If we have not |
161 // yet created the byteGrayPalette, create it now and copy |
161 // yet created the byteGrayPalette, create it now and copy |
162 // it into our temporary bmi structure. |
162 // it into our temporary bmi structure. |
163 // REMIND: byteGrayPalette is a leak since we do not have |
163 // REMIND: byteGrayPalette is a leak since we do not have |
164 // a mechansim to free it up. This should be fine, since it |
164 // a mechanism to free it up. This should be fine, since it |
165 // is only 256 bytes for any process and only gets malloc'd |
165 // is only 256 bytes for any process and only gets malloc'd |
166 // when using ByteGray surfaces. Eventually, we should use |
166 // when using ByteGray surfaces. Eventually, we should use |
167 // the new Disposer mechanism to delete this native memory. |
167 // the new Disposer mechanism to delete this native memory. |
168 if (byteGrayPalette == NULL) { |
168 if (byteGrayPalette == NULL) { |
169 // assert (256 * sizeof(RGBQUAD)) <= SIZE_MAX |
169 // assert (256 * sizeof(RGBQUAD)) <= SIZE_MAX |