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
This commit is contained in:
parent
6f45066bd8
commit
a237d7ed48
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user