mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-25 02:04:23 +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:
parent
1629f9f66a
commit
a5cf4030f5
374 changed files with 2064 additions and 3331 deletions
|
|
@ -319,8 +319,6 @@ public:
|
|||
}
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
snd_pcm_t* handle;
|
||||
String error;
|
||||
int bitDepth, numChannelsRunning, latency;
|
||||
|
|
@ -383,6 +381,8 @@ private:
|
|||
DBG ("ALSA error: " + error + "\n");
|
||||
return true;
|
||||
}
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ALSADevice);
|
||||
};
|
||||
|
||||
//==============================================================================
|
||||
|
|
@ -623,8 +623,6 @@ public:
|
|||
}
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
String error;
|
||||
double sampleRate;
|
||||
int bufferSize, outputLatency, inputLatency;
|
||||
|
|
@ -679,6 +677,8 @@ private:
|
|||
for (i = 0; i < maxChansIn; ++i)
|
||||
channelNamesIn.add ("channel " + String ((int) i + 1));
|
||||
}
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ALSAThread);
|
||||
};
|
||||
|
||||
|
||||
|
|
@ -978,8 +978,6 @@ public:
|
|||
}
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
StringArray inputNames, outputNames, inputIds, outputIds;
|
||||
bool hasScanned;
|
||||
|
|
@ -1011,8 +1009,7 @@ private:
|
|||
return s;
|
||||
}*/
|
||||
|
||||
ALSAAudioIODeviceType (const ALSAAudioIODeviceType&);
|
||||
ALSAAudioIODeviceType& operator= (const ALSAAudioIODeviceType&);
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ALSAAudioIODeviceType);
|
||||
};
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
|
|
@ -584,14 +584,11 @@ public:
|
|||
}
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
StringArray inputNames, outputNames, inputIds, outputIds;
|
||||
bool hasScanned;
|
||||
|
||||
JackAudioIODeviceType (const JackAudioIODeviceType&);
|
||||
JackAudioIODeviceType& operator= (const JackAudioIODeviceType&);
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (JackAudioIODeviceType);
|
||||
};
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
|
|
@ -199,13 +199,13 @@ public:
|
|||
snd_seq_drain_output (seqHandle);
|
||||
}
|
||||
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
MidiOutput* const midiOutput;
|
||||
snd_seq_t* const seqHandle;
|
||||
snd_midi_event_t* midiParser;
|
||||
int maxEventSize;
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MidiOutputDevice);
|
||||
};
|
||||
|
||||
const StringArray MidiOutput::getDevices()
|
||||
|
|
@ -349,12 +349,12 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
MidiInput* const midiInput;
|
||||
snd_seq_t* const seqHandle;
|
||||
MidiInputCallback* const callback;
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MidiInputThread);
|
||||
};
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
|
|
@ -252,8 +252,6 @@ public:
|
|||
StringArray headerLines;
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
int socketHandle, levelsOfRedirection;
|
||||
const int timeoutSeconds;
|
||||
|
|
@ -393,6 +391,8 @@ private:
|
|||
|
||||
return String::empty;
|
||||
}
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (JUCE_HTTPSocketStream);
|
||||
};
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
|
|
@ -651,8 +651,6 @@ public:
|
|||
}
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
XImage* xImage;
|
||||
const int imageDepth;
|
||||
|
|
@ -675,6 +673,8 @@ private:
|
|||
jassertfalse;
|
||||
return 0;
|
||||
}
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (XBitmapImage);
|
||||
};
|
||||
|
||||
|
||||
|
|
@ -1761,8 +1761,6 @@ public:
|
|||
const Image& getTaskbarIcon() const throw() { return taskbarImage; }
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
bool dontRepaint;
|
||||
|
||||
static ModifierKeys currentModifiers;
|
||||
|
|
@ -2667,6 +2665,8 @@ private:
|
|||
{
|
||||
lastMousePos = Point<int> (0x100000, 0x100000);
|
||||
}
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (LinuxComponentPeer);
|
||||
};
|
||||
|
||||
ModifierKeys LinuxComponentPeer::currentModifiers;
|
||||
|
|
@ -3320,8 +3320,6 @@ public:
|
|||
}
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
GLXContext renderContext;
|
||||
|
||||
private:
|
||||
|
|
@ -3330,8 +3328,7 @@ private:
|
|||
int swapInterval;
|
||||
|
||||
//==============================================================================
|
||||
WindowedGLContext (const WindowedGLContext&);
|
||||
WindowedGLContext& operator= (const WindowedGLContext&);
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (WindowedGLContext);
|
||||
};
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue