From: Vadim Zeitlin Date: Thu, 29 Mar 2007 18:12:59 +0000 (+0000) Subject: fix memory leak when handling background attribute (patch 1687900) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a237d7ed48c2cfbf2b82e197990cad16edd8f0ed fix memory leak when handling background attribute (patch 1687900) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45121 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/html/m_layout.cpp b/src/html/m_layout.cpp index 4986a9f649..58384fb599 100644 --- a/src/html/m_layout.cpp +++ b/src/html/m_layout.cpp @@ -346,12 +346,12 @@ TAG_HANDLER_BEGIN(BODY, "BODY") wxInputStream *is = fileBgImage->GetStream(); if ( is ) { -#if !defined(__WXMSW__) || wxUSE_WXDIB wxImage image(*is); if ( image.Ok() ) winIface->SetHTMLBackgroundImage(image); -#endif } + + delete fileBgImage; } }