Skip to content

Commit

Permalink
UPBGE: Fix after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
youle31 committed Jan 17, 2025
1 parent d035e52 commit c054049
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/gameengine/GamePlayer/GPG_ghost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1431,7 +1431,7 @@ int main(int argc,
MEM_freeN(bfd->user);
}

MEM_freeN(bfd);
MEM_delete(bfd);
}

char basedpath[FILE_MAX];
Expand Down Expand Up @@ -1923,7 +1923,7 @@ int main(int argc,
MEM_freeN(bfd->user);
}

MEM_freeN(bfd);
MEM_delete(bfd);
/* G_MAIN == bfd->main, it gets referenced in free_nodesystem so we can't have a dangling pointer
*/
G_MAIN = nullptr;
Expand Down

0 comments on commit c054049

Please sign in to comment.