Memory leak in D3D11

Discussion area about developing or extending OGRE, adding plugins for it or building applications on it. No newbie questions please, use the Help forum for that.
Trigve
Kobold
Posts: 25
Joined: Sun Dec 17, 2006 10:20 pm
Location: Slovakia

Memory leak in D3D11

Post by Trigve »

Hi,
I've found a memory leak in D3D11 plugin (Ogre 1.8 ), in OgreD3D11VideoModeList.cpp:82 in method D3D11VideoModeList::enumerate(). There is line:

Code: Select all

DXGI_MODE_DESC *pDesc = new DXGI_MODE_DESC[ NumModes ];
pDesc is never deleted. I think it safe to delete pDesc at the end of enclosed else block.

Trigve
User avatar
syedhs
Silver Sponsor
Silver Sponsor
Posts: 2703
Joined: Mon Aug 29, 2005 3:24 pm
Location: Kuala Lumpur, Malaysia
x 51

Re: Memory leak in D3D11

Post by syedhs »

Probably you should check the latest one aka Ogre 1.9 :wink: D3D11 in Ogre 1.8 AFAIK, is still an experimental rendering system.
A willow deeply scarred, somebody's broken heart
And a washed-out dream
They follow the pattern of the wind, ya' see
Cause they got no place to be
That's why I'm starting with me
Trigve
Kobold
Posts: 25
Joined: Sun Dec 17, 2006 10:20 pm
Location: Slovakia

Re: Memory leak in D3D11

Post by Trigve »

I've checked the HG repository and in https://bitbucket.org/sinbad/ogre/src/2 ... deList.cpp it looks like like the leak is still there ;)
Transporter
Minaton
Posts: 933
Joined: Mon Mar 05, 2012 11:37 am
Location: Germany
x 110

Re: Memory leak in D3D11

Post by Transporter »

@Trigve
It would be nice if you can create and submit a patch to http://www.ogre3d.org/mantis/.