diff --git a/main.c b/main.c index 5f9ea6c..5087367 100644 --- a/main.c +++ b/main.c @@ -729,17 +729,25 @@ void handleIntuitionMessage(struct IntuiMessage *iMessage) { } } +struct dtTrigger myTrigger; /** * Start playing a bell sound, then wait for it to finish. */ void startBellSound(void) { - struct dtTrigger myTrigger; ULONG soundPlayResult; if (!DataTypesBase) return; // https://amigaworld.net/modules/newbb/viewtopic.php?forum=15&topic_id=39094&post_id=735120&viewmode=thread&order=0#735120 + // TODO: something in NewDTObject is causing a lock to be created that + // CodeWatcher declares was not freed. Commenting this down to just + // the GroupID tag does not make that warning go away. Each time this + // is called, a new lock is created. + // + // CodeWatcher also seems to think this is being kept around in memory, + // but running avail before and after getting the bell to ring indicate + // otherwise. if (bellSound = NewDTObject( BELL_FILENAME, DTA_GroupID, GID_SOUND,