all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ben Key <BenK@FreedomScientific.com>
Cc: "'emacs-devel@gnu.org'" <emacs-devel@gnu.org>
Subject: RE: Need help with Windows implementation of play-sound
Date: Sun, 22 Sep 2002 01:01:04 -0400	[thread overview]
Message-ID: <762A7BB74D6AD51195EF00B0D0AA16602C37E6@STPETE> (raw)

Thanks.  I will try the change you suggested Monday.  If it works, I will
attempt to gernerate a patch for Emacs that includes this and the changes to
the make files, and send it to this list. 

-----Original Message-----
From: Harald.Maier.BW@t-online.de
To: Ben Key
Cc: emacs-devel@gnu.org
Sent: 9/21/02 5:34 AM
Subject: Re: Need help with Windows implementation of play-sound


Ben Key <BenK@FreedomScientific.com> writes:

> Can someone take a look at what I have done so far and give me a few 
> pointers?

> {
>   len=XSTRING(attrs[SOUND_FILE])->size;
>   lpszFile=(char *)alloca(len+1);
...
>   free(lpszFile);
!!! remove that line !!!

>   unbind_to (count, Qnil);
>   return Qnil;
> }

You are using alloca so you don't have to call free. free is necessary
by using malloc. The memory allocated by alloca will be automatically
be freed by leaving the funciton.

I am very interested in testing this. 

Harald

             reply	other threads:[~2002-09-22  5:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-22  5:01 Ben Key [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-09-23  8:31 Need help with Windows implementation of play-sound jasonr
2002-09-19 18:57 Ben Key
2002-09-19 18:53 Ben Key
2002-09-21  9:34 ` Harald.Maier.BW

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=762A7BB74D6AD51195EF00B0D0AA16602C37E6@STPETE \
    --to=benk@freedomscientific.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.