You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
2.3KB

  1. diff --git a/modules/juce_core/memory/juce_LeakedObjectDetector.h b/modules/juce_core/memory/juce_LeakedObjectDetector.h
  2. index 248e7bc..74b7779 100644
  3. --- a/modules/juce_core/memory/juce_LeakedObjectDetector.h
  4. +++ b/modules/juce_core/memory/juce_LeakedObjectDetector.h
  5. @@ -29,6 +29,7 @@
  6. #ifndef JUCE_LEAKEDOBJECTDETECTOR_H_INCLUDED
  7. #define JUCE_LEAKEDOBJECTDETECTOR_H_INCLUDED
  8. +#define DBG2(dbgtext) { juce::String str; str << dbgtext; std::cout << str.toRawUTF8() << std::endl; }
  9. //==============================================================================
  10. /**
  11. @@ -55,7 +56,7 @@ public:
  12. {
  13. if (--(getCounter().numObjects) < 0)
  14. {
  15. - DBG ("*** Dangling pointer deletion! Class: " << getLeakedObjectClassName());
  16. + DBG2 ("*** Dangling pointer deletion! Class: " << getLeakedObjectClassName());
  17. /** If you hit this, then you've managed to delete more instances of this class than you've
  18. created.. That indicates that you're deleting some dangling pointers.
  19. @@ -68,7 +69,7 @@ public:
  20. your object management. Tut, tut. Always, always use ScopedPointers, OwnedArrays,
  21. ReferenceCountedObjects, etc, and avoid the 'delete' operator at all costs!
  22. */
  23. - jassertfalse;
  24. + //jassertfalse;
  25. }
  26. }
  27. @@ -83,7 +84,7 @@ private:
  28. {
  29. if (numObjects.value > 0)
  30. {
  31. - DBG ("*** Leaked objects detected: " << numObjects.value << " instance(s) of class " << getLeakedObjectClassName());
  32. + DBG2 ("*** Leaked objects detected: " << numObjects.value << " instance(s) of class " << getLeakedObjectClassName());
  33. /** If you hit this, then you've leaked one or more objects of the type specified by
  34. the 'OwnerClass' template parameter - the name should have been printed by the line above.
  35. @@ -92,7 +93,7 @@ private:
  36. your object management. Tut, tut. Always, always use ScopedPointers, OwnedArrays,
  37. ReferenceCountedObjects, etc, and avoid the 'delete' operator at all costs!
  38. */
  39. - jassertfalse;
  40. + //jassertfalse;
  41. }
  42. }