Commit f1f8e4d1 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

riched20: Destroy the context before sending the notification.

parent d47be63f
......@@ -104,17 +104,16 @@ void editor_draw( ME_TextEditor *editor, HDC hDC, const RECT *update )
PatBlt( hDC, rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top, PATCOPY );
}
}
DeleteObject( SelectObject( hDC, brush ) );
SelectClipRgn( hDC, oldRgn );
if (oldRgn) DeleteObject( oldRgn );
ME_DestroyContext( &c );
if (editor->nTotalLength != editor->nLastTotalLength || editor->nTotalWidth != editor->nLastTotalWidth)
ME_SendRequestResize(editor, FALSE);
editor->nLastTotalLength = editor->nTotalLength;
editor->nLastTotalWidth = editor->nTotalWidth;
DeleteObject( SelectObject( hDC, brush ) );
SelectClipRgn(hDC, oldRgn);
if (oldRgn)
DeleteObject(oldRgn);
ME_DestroyContext(&c);
}
void ME_Repaint(ME_TextEditor *editor)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment