From cf0f4048dafeea892c526480670fbaa19d37ccd0 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 6 Nov 2001 02:22:16 +0000 Subject: Memory leak fixed in calltips and better casts when returning pointers. --- src/Editor.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Editor.cxx') diff --git a/src/Editor.cxx b/src/Editor.cxx index cb374cc01..ce56ee8b5 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -4625,7 +4625,7 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { break; case SCI_GETDOCPOINTER: - return reinterpret_cast(pdoc); + return reinterpret_cast(pdoc); case SCI_SETDOCPOINTER: SetDocPointer(reinterpret_cast(lParam)); @@ -4634,7 +4634,7 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { case SCI_CREATEDOCUMENT: { Document *doc = new Document(); doc->AddRef(); - return reinterpret_cast(doc); + return reinterpret_cast(doc); } case SCI_ADDREFDOCUMENT: -- cgit v1.2.3