shithub: qk1

Download patch

ref: c59890019f2b2822fd4fd02bade798d63a6d1e29
parent: e4b9648c5c76516ed1bae833f4a7ea426c86093a
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Sun Dec 31 18:15:54 EST 2023

snd_openal: do NOT close lmp files

--- a/snd_openal.c
+++ b/snd_openal.c
@@ -740,7 +740,6 @@
 			}
 		}
 	}
-	fclose(f);
 	track.stop = true;
 	waitpid(track.decoder, nil, 0);
 
@@ -778,8 +777,6 @@
 			waitpid(track.decoder, nil, 0);
 		if(track.reader > 0)
 			pthread_join(track.reader, nil);
-		else
-			fclose(f);
 		return;
 	}
 	if(pipe(in) != 0){