gdiplus: Fix image attributes leak (Coverity).

This commit is contained in:
Nikolay Sivov 2014-03-27 06:54:01 +04:00 committed by Alexandre Julliard
parent ee5c64f583
commit d78a0612ed
1 changed files with 1 additions and 2 deletions

View File

@ -745,8 +745,6 @@ GpStatus WINGDIPAPI GdipCreateTexture2(GpImage *image, GpWrapMode wrapmode,
/******************************************************************************
* GdipCreateTextureIA [GDIPLUS.@]
*
* FIXME: imageattr ignored
*/
GpStatus WINGDIPAPI GdipCreateTextureIA(GpImage *image,
GDIPCONST GpImageAttributes *imageattr, REAL x, REAL y, REAL width,
@ -844,6 +842,7 @@ GpStatus WINGDIPAPI GdipCreateTexture2I(GpImage *image, GpWrapMode wrapmode,
imageattr->wrap = wrapmode;
stat = GdipCreateTextureIA(image, imageattr, x, y, width, height, texture);
GdipDisposeImageAttributes(imageattr);
}
return stat;