Explorar el Código

add some missing frees for subghz playlist

found and fixed by Willy-JL
MX hace 2 años
padre
commit
b735fdb980
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      playlist.c

+ 2 - 0
playlist.c

@@ -163,6 +163,7 @@ static int playlist_worker_process(
             flipper_format_get_raw_stream(fff_file), flipper_format_get_raw_stream(fff_data));
     }
     flipper_format_file_close(fff_file);
+    flipper_format_free(fff_file);
 
     // (try to) send file
     SubGhzEnvironment* environment = subghz_environment_alloc();
@@ -220,6 +221,7 @@ static int playlist_worker_process(
     subghz_devices_idle(worker->radio_device);
 
     subghz_transmitter_free(transmitter);
+    subghz_environment_free(environment);
 
     return status;
 }