Skip to content

Commit 7bf9785

Browse files
committed
fix memleaks in FreeMenuOwnerDrawInfo() due to silly typo
1 parent 7ce826e commit 7bf9785

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Menu.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -1861,7 +1861,6 @@ void FreeAllMenuDrawInfos() {
18611861
// Note: could be faster
18621862
FreeMenuOwnerDrawInfo(g_menuDrawInfos[0]);
18631863
}
1864-
DeleteMenuFont();
18651864
}
18661865

18671866
void FreeMenuOwnerDrawInfo(MenuOwnerDrawInfo* modi) {
@@ -1932,7 +1931,7 @@ void FreeMenuOwnerDrawInfoData(HMENU hmenu) {
19321931
SetMenuItemInfoW(hmenu, (uint)i, TRUE /* by position */, &mii);
19331932
}
19341933
if (mii.hSubMenu != nullptr) {
1935-
MarkMenuOwnerDraw(mii.hSubMenu);
1934+
FreeMenuOwnerDrawInfoData(mii.hSubMenu);
19361935
}
19371936
};
19381937
}

0 commit comments

Comments
 (0)