< prev index next >

src/java.desktop/windows/native/libawt/windows/awt_DnDDS.cpp

Print this page
rev 52697 : 8214380: AwtDragSource function LoadCache misses a ReleaseLongArrayElements in special case

*** 420,429 **** --- 420,432 ---- try { m_types = (FORMATETC *)safe_Calloc(sizeof(FORMATETC), m_ntypes); } catch (std::bad_alloc&) { m_ntypes = 0; + if (saveFormats != NULL) { + env->ReleaseLongArrayElements(formats, saveFormats, 0); + } throw; } lFormats = saveFormats;
< prev index next >