Skip to content

Commit

Permalink
fix: alias improper cleanup #1350 (#1457)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoffstadt committed Nov 29, 2021
1 parent 69aeb79 commit 37c6bda
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DearPyGui/src/core/AppItems/mvAppItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ namespace Marvel {
if (_dropCallback) Py_DECREF(_dropCallback);

// in case item registry is destroyed
if (GContext->started)
if (GContext->itemRegistry)
{
RemoveAlias(*GContext->itemRegistry, _alias, true);
CleanUpItem(*GContext->itemRegistry, _uuid);
Expand Down
3 changes: 2 additions & 1 deletion DearPyGui/src/core/mvContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ namespace Marvel {
mvSubmitCallback([=]() {
GContext->callbackRegistry->running = false;
});
GContext->future.get();
if(GContext->future.valid())
GContext->future.get();
if (GContext->viewport)
delete GContext->viewport;

Expand Down

0 comments on commit 37c6bda

Please sign in to comment.