Page MenuHomeWildfire Games
Paste P172

CGUI::Draw() (CGUI.cpp:347) possible leak glClear(GL_DEPTH_BUFFER_BIT);
ActivePublic

Authored by elexis on Mon, Sep 9, 7:52 PM.
==362884== 16 bytes in 2 blocks are possibly lost in loss record 119 of 2,942
==362884== at 0x4838DEF: operator new(unsigned long) (vg_replace_malloc.c:334)
==362884== by 0x25F22E3A: ??? (in /usr/lib/dri/r600_dri.so)
==362884== by 0x25F1E3FD: ??? (in /usr/lib/dri/r600_dri.so)
==362884== by 0x25E75E82: ??? (in /usr/lib/dri/r600_dri.so)
==362884== by 0x25D4888D: ??? (in /usr/lib/dri/r600_dri.so)
==362884== by 0x25CB7F6D: ??? (in /usr/lib/dri/r600_dri.so)
==362884== by 0x25CB814C: ??? (in /usr/lib/dri/r600_dri.so)
==362884== by 0x25CB8281: ??? (in /usr/lib/dri/r600_dri.so)
==362884== by 0x25E977E0: ??? (in /usr/lib/dri/r600_dri.so)
==362884== by 0x6078A8: CGUI::Draw() (CGUI.cpp:347)
==362884== by 0x6380B8: CGUIManager::Draw() const (GUIManager.cpp:387)
==362884== by 0x397B0E: Render() (GameSetup.cpp:253)

Event Timeline

elexis created this paste.EditedMon, Sep 9, 7:52 PM
elexis created this object with visibility "Public (No Login Required)".

The affected line is glClear(GL_DEPTH_BUFFER_BIT); from rP666, number of the beast:

void CGUI::Draw()
{
	// Clear the depth buffer, so the GUI is
	// drawn on top of everything else
	glClear(GL_DEPTH_BUFFER_BIT);

	try
	{
		m_BaseObject->RecurseObject(&IGUIObject::IsHidden, &IGUIObject::Draw);
	}
	catch (PSERROR_GUI& e)
	{
		LOGERROR("GUI draw error: %s", e.what());
	}
}