comparison src/select-msw.c @ 1726:a8d8f419b459

[xemacs-hg @ 2003-09-30 15:26:34 by james] Add type information to xfree to avoid alias creation.
author james
date Tue, 30 Sep 2003 15:27:01 +0000
parents 79c6ff3eef26
children 04bc9d2f42c7
comparison
equal deleted inserted replaced
1725:7ff8f4d70aec 1726:a8d8f419b459
322 322
323 if (!hValue) 323 if (!hValue)
324 { 324 {
325 CloseClipboard (); 325 CloseClipboard ();
326 326
327 xfree (src); 327 xfree (src, void *);
328 return Qnil; 328 return Qnil;
329 } 329 }
330 330
331 dst = GlobalLock (hValue); 331 dst = GlobalLock (hValue);
332 332
333 if (!dst) 333 if (!dst)
334 { 334 {
335 GlobalFree (hValue); 335 GlobalFree (hValue);
336 CloseClipboard (); 336 CloseClipboard ();
337 337
338 xfree (src); 338 xfree (src, void *);
339 return Qnil; 339 return Qnil;
340 } 340 }
341 341
342 memcpy (dst, src, size); 342 memcpy (dst, src, size);
343 xfree (src); 343 xfree (src, void *);
344 344
345 GlobalUnlock (hValue); 345 GlobalUnlock (hValue);
346 346
347 /* Empty the clipboard if we're replacing everything */ 347 /* Empty the clipboard if we're replacing everything */
348 if (NILP (how_to_add) || EQ (how_to_add, Qreplace_all)) 348 if (NILP (how_to_add) || EQ (how_to_add, Qreplace_all))