Commit e4888b0e authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

winex11.drv: Empty clipboard cache on process unload to avoid false positives…

winex11.drv: Empty clipboard cache on process unload to avoid false positives being reported for memory leaks.
parent 3547ea01
......@@ -3282,3 +3282,13 @@ void X11DRV_SelectionClear( HWND hWnd, XEvent *xev )
X11DRV_CLIPBOARD_ReleaseSelection( event->display, event->selection,
event->window, hWnd, event->time );
}
/***********************************************************************
* X11DRV_Clipboard_Cleanup
*/
void X11DRV_Clipboard_Cleanup(void)
{
selectionAcquired = S_NOSELECTION;
X11DRV_EmptyClipboard(FALSE);
}
......@@ -765,6 +765,7 @@ extern XContext winContext;
extern void X11DRV_InitClipboard(void);
extern int CDECL X11DRV_AcquireClipboard(HWND hWndClipWindow);
extern void X11DRV_Clipboard_Cleanup(void);
extern void X11DRV_ResetSelectionOwner(void);
extern void CDECL X11DRV_SetFocus( HWND hwnd );
extern Cursor X11DRV_GetCursor( Display *display, struct tagCURSORICONINFO *ptr );
......
......@@ -583,6 +583,7 @@ static void thread_detach(void)
*/
static void process_detach(void)
{
X11DRV_Clipboard_Cleanup();
#ifdef SONAME_LIBXXF86VM
/* cleanup XVidMode */
X11DRV_XF86VM_Cleanup();
......
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