javauis/lcdui_akn/javalcdui/javasrc.nokialcdui/javax/microedition/lcdui/CanvasGraphicsItemPainter.java
equal
deleted
inserted
replaced
261 * Invalid (negative) handles indicate that their creation failed in the |
261 * Invalid (negative) handles indicate that their creation failed in the |
262 * first place. |
262 * first place. |
263 */ |
263 */ |
264 final void registeredFinalize() |
264 final void registeredFinalize() |
265 { |
265 { |
266 synchronized (iToolkit) |
266 if (mFinalizer != null) |
267 { |
267 { |
268 if (iHandle > 0) |
268 synchronized (iToolkit) |
269 { |
269 { |
270 _dispose(iToolkit.getHandle(), iHandle); |
270 if (iHandle > 0) |
271 iHandle = 0; |
271 { |
|
272 iToolkit.disposeObject(iHandle); |
|
273 iHandle = 0; |
|
274 } |
272 } |
275 } |
273 } |
276 } |
274 } |
277 } |
275 |
278 |
276 // Native methods |
279 // Native methods |