mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-29 02:40:05 +00:00
Revert previous commit and instead call ComponentHelpers::releaseAllCachedImageResources() from Component::removeFromDesktop()
This commit is contained in:
parent
af098a1985
commit
5c03d13f0d
2 changed files with 2 additions and 1 deletions
|
|
@ -874,7 +874,6 @@ private:
|
|||
if (component != nullptr)
|
||||
{
|
||||
#if JUCE_WINDOWS
|
||||
component->setVisible (false);
|
||||
component->removeFromDesktop();
|
||||
#else
|
||||
if (macHostWindow != nullptr)
|
||||
|
|
|
|||
|
|
@ -700,6 +700,8 @@ void Component::removeFromDesktop()
|
|||
|
||||
if (flags.hasHeavyweightPeerFlag)
|
||||
{
|
||||
ComponentHelpers::releaseAllCachedImageResources (*this);
|
||||
|
||||
auto* peer = ComponentPeer::getPeerFor (this);
|
||||
jassert (peer != nullptr);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue