Skip to content

Commit

Permalink
.NET: Fix horrible exceptions that drained hard drive space
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Apr 1, 2024
1 parent ca28d43 commit 5f90e3f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion csharp-api/REFrameworkNET/Callbacks.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ public: \
PreImplementation -= value; \
} \
void raise() { \
if (Callbacks::Impl::IsUnloading || PreImplementation == nullptr) { \
return; \
} \
PreImplementation(); \
} \
} \
Expand All @@ -56,7 +59,7 @@ public: \
PostImplementation -= value; \
} \
void raise() { \
if (Callbacks::Impl::IsUnloading) { \
if (Callbacks::Impl::IsUnloading || PostImplementation == nullptr) { \
return; \
} \
PostImplementation(); \
Expand Down

0 comments on commit 5f90e3f

Please sign in to comment.