Skip to content

Commit

Permalink
Fix Windows crash
Browse files Browse the repository at this point in the history
  • Loading branch information
dapetcu21 committed Dec 31, 2018
1 parent 4844d05 commit 6586cbc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions defos/src/defos_win.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,7 @@ void * defos_load_cursor_win(const char *filename)
void defos_gc_custom_cursor(void * _cursor)
{
CustomCursor * cursor = (CustomCursor*)_cursor;
if (!cursor) { return; }
cursor->ref_count -= 1;
if (!cursor->ref_count) {
delete cursor;
Expand Down

0 comments on commit 6586cbc

Please sign in to comment.