flatlaf-natives-windows: fixed compile and link errors

This commit is contained in:
Karl Tauber
2022-11-23 21:27:55 +01:00
parent f7be12df67
commit c3adadfe2f
2 changed files with 2 additions and 2 deletions

View File

@@ -154,7 +154,7 @@ void FlatWndProc::uninstall( JNIEnv *env, jobject obj, HWND hwnd ) {
env->DeleteGlobalRef( fwp->obj );
if( fwp->background != NULL )
::DeleteObject( fwp->background );
FlatLafWin32ProcessHeapDelete(fwp);
FlatLafWin32ProcessHeapFree(fwp);
}
void FlatWndProc::initIDs( JNIEnv *env, jobject obj ) {

View File

@@ -47,7 +47,7 @@ public:
HWNDMap::HWNDMap() {
size = 0;
capacity = DEFAULT_CAPACITY;
table = new Entry[capacity];
table = new (FlatLafNoThrow) Entry[capacity];
::InitializeCriticalSection( &criticalSection );