1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-01 03:10:06 +00:00

New class LeakedObjectDetector, and JUCE_LEAK_DETECTOR macros for spotting leakages in a neat, cross-platform way. Used these to replace all the old juce_UseDebuggingNewOperator stuff in all the classes. Also some drawable and component transform fixes.

This commit is contained in:
Julian Storer 2010-11-29 12:24:55 +00:00
parent 1629f9f66a
commit a5cf4030f5
374 changed files with 2064 additions and 3331 deletions

View file

@ -425,9 +425,6 @@ public:
close();
}
//==============================================================================
juce_UseDebuggingNewOperator
//==============================================================================
#if JUCE_WINDOWS || JUCE_LINUX
void* hModule;
@ -682,6 +679,9 @@ public:
#endif
#endif
private:
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ModuleHandle);
};
//==============================================================================
@ -783,10 +783,8 @@ public:
void handleAsyncUpdate();
VstIntPtr handleCallback (VstInt32 opcode, VstInt32 index, VstInt32 value, void *ptr, float opt);
//==============================================================================
juce_UseDebuggingNewOperator
private:
//==============================================================================
friend class VSTPluginWindow;
friend class VSTPluginFormat;
@ -828,6 +826,7 @@ private:
void setPower (const bool on);
VSTPluginInstance (const ReferenceCountedObjectPtr <ModuleHandle>& module);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (VSTPluginInstance);
};
//==============================================================================
@ -1367,8 +1366,6 @@ public:
}
//==============================================================================
juce_UseDebuggingNewOperator
private:
VSTPluginInstance& plugin;
bool isOpen, wasShowing, recursiveResize;
@ -1880,6 +1877,9 @@ private:
innerWrapper->setSize (getWidth(), getHeight());
}
#endif
private:
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (VSTPluginWindow);
};
//==============================================================================