CVS: rdesktop xclip.c,1.25,1.26

Peter Åstrand <[email protected]>
Newsgroups gmane.network.rdesktop.cvs
Message-ID <[email protected]>
Update of /cvsroot/rdesktop/rdesktop
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3227

Modified Files:
	xclip.c 
Log Message:
Applied patch from bug #1431217: Segmentation fault in xclip_handle_SelectionNotify.

Index: xclip.c
===================================================================
RCS file: /cvsroot/rdesktop/rdesktop/xclip.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** xclip.c	5 Jan 2006 11:56:57 -0000	1.25
--- xclip.c	28 Feb 2006 08:09:41 -0000	1.26
***************
*** 386,390 ****
  	Atom *supported_targets;
  	int res, i, format;
! 	uint8 *data;
  
  	if (event->property == None)
--- 386,390 ----
  	Atom *supported_targets;
  	int res, i, format;
! 	uint8 *data = NULL;
  
  	if (event->property == None)
***************
*** 504,508 ****
        fail:
  	XDeleteProperty(g_display, g_wnd, rdesktop_clipboard_target_atom);
! 	XFree(data);
  	helper_cliprdr_send_empty_response();
  }
--- 504,509 ----
        fail:
  	XDeleteProperty(g_display, g_wnd, rdesktop_clipboard_target_atom);
! 	if (data)
! 		XFree(data);
  	helper_cliprdr_send_empty_response();
  }



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.