Browse Source

Don't check for leaks on classes that prevent heap allocation

tags/1.9.4
falkTX 12 years ago
parent
commit
746e609fc4
6 changed files with 8 additions and 8 deletions
  1. +2
    -2
      source/backend/CarlaPlugin.hpp
  2. +1
    -1
      source/discovery/carla-discovery.cpp
  3. +1
    -1
      source/utils/CarlaLv2Utils.hpp
  4. +2
    -2
      source/utils/CarlaMutex.hpp
  5. +1
    -1
      source/utils/CarlaRingBuffer.hpp
  6. +1
    -1
      source/utils/Lv2AtomQueue.hpp

+ 2
- 2
source/backend/CarlaPlugin.hpp View File

@@ -926,7 +926,7 @@ protected:
CarlaPlugin* const fPlugin;

CARLA_PREVENT_HEAP_ALLOCATION
CARLA_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(ScopedDisabler)
CARLA_DECLARE_NON_COPY_CLASS(ScopedDisabler)
};

/*!
@@ -945,7 +945,7 @@ protected:
const bool fBlock;

CARLA_PREVENT_HEAP_ALLOCATION
CARLA_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(ScopedSingleProcessLocker)
CARLA_DECLARE_NON_COPY_CLASS(ScopedSingleProcessLocker)
};

CARLA_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(CarlaPlugin)


+ 1
- 1
source/discovery/carla-discovery.cpp View File

@@ -359,7 +359,7 @@ private:
LinuxSampler::Engine* fEngine;

CARLA_PREVENT_HEAP_ALLOCATION
CARLA_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(LinuxSamplerScopedEngine)
CARLA_DECLARE_NON_COPY_CLASS(LinuxSamplerScopedEngine)
};
#endif



+ 1
- 1
source/utils/CarlaLv2Utils.hpp View File

@@ -406,7 +406,7 @@ private:
bool fNeedsInit;

CARLA_PREVENT_HEAP_ALLOCATION
CARLA_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(Lv2WorldClass)
CARLA_DECLARE_NON_COPY_CLASS(Lv2WorldClass)
};

// -----------------------------------------------------------------------


+ 2
- 2
source/utils/CarlaMutex.hpp View File

@@ -84,7 +84,7 @@ public:
CarlaMutex& fMutex;

CARLA_PREVENT_HEAP_ALLOCATION
CARLA_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(ScopedLocker)
CARLA_DECLARE_NON_COPY_CLASS(ScopedLocker)
};

private:
@@ -92,7 +92,7 @@ private:
volatile bool fTryLockWasCalled;

CARLA_PREVENT_HEAP_ALLOCATION
CARLA_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(CarlaMutex)
CARLA_DECLARE_NON_COPY_CLASS(CarlaMutex)
};

// -----------------------------------------------------------------------


+ 1
- 1
source/utils/CarlaRingBuffer.hpp View File

@@ -240,7 +240,7 @@ private:
RingBuffer* fRingBuf;

CARLA_PREVENT_HEAP_ALLOCATION
CARLA_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(RingBufferControl)
CARLA_DECLARE_NON_COPY_CLASS(RingBufferControl)
};

// -----------------------------------------------------------------------


+ 1
- 1
source/utils/Lv2AtomQueue.hpp View File

@@ -151,7 +151,7 @@ private:
Lv2AtomRingBufferControl fRingBufferCtrl;

CARLA_PREVENT_HEAP_ALLOCATION
CARLA_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(Lv2AtomQueue)
CARLA_DECLARE_NON_COPY_CLASS(Lv2AtomQueue)
};

// -----------------------------------------------------------------------


Loading…
Cancel
Save