Applied patch [ 1339882 ] richtext misc cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36031 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -16,14 +16,14 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#if wxUSE_RICHTEXT
|
||||
|
||||
#include "wx/richtext/richtextbuffer.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/wx.h"
|
||||
#endif
|
||||
|
||||
#include "wx/image.h"
|
||||
|
||||
#if wxUSE_RICHTEXT
|
||||
|
||||
#include "wx/filename.h"
|
||||
#include "wx/clipbrd.h"
|
||||
#include "wx/dataobj.h"
|
||||
@@ -32,7 +32,6 @@
|
||||
#include "wx/mstream.h"
|
||||
#include "wx/sstream.h"
|
||||
|
||||
#include "wx/richtext/richtextbuffer.h"
|
||||
#include "wx/richtext/richtextctrl.h"
|
||||
#include "wx/richtext/richtextstyles.h"
|
||||
|
||||
@@ -4980,8 +4979,7 @@ void wxRichTextImageBlock::Init()
|
||||
|
||||
void wxRichTextImageBlock::Clear()
|
||||
{
|
||||
if (m_data)
|
||||
delete m_data;
|
||||
delete[] m_data;
|
||||
m_data = NULL;
|
||||
m_dataSize = 0;
|
||||
m_imageType = -1;
|
||||
|
Reference in New Issue
Block a user