Skip to content

Commit ea9da8b

Browse files
committed
fix leak on ResToText
1 parent c040ba9 commit ea9da8b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ResToText.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1680,7 +1680,8 @@ CreateBitmapFromCursorsDx(HWND hwnd, const EntryBase& entry)
16801680
{
16811681
assert(0);
16821682
DeleteObject(hbm);
1683-
return NULL;
1683+
hbm = NULL;
1684+
break;
16841685
}
16851686
auto& cursor_entry = (EntryBase&)*e;
16861687

0 commit comments

Comments
 (0)