Просмотр исходного кода

pocsag free strings - forgot to add that before :(

thanks Willy-JL for finding this problem!
MX 2 лет назад
Родитель
Сommit
96bf264f65
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      base_pack/pocsag_pager/protocols/pocsag.c

+ 6 - 0
base_pack/pocsag_pager/protocols/pocsag.c

@@ -93,6 +93,12 @@ void subghz_protocol_decoder_pocsag_free(void* context) {
     SubGhzProtocolDecoderPocsag* instance = context;
     SubGhzProtocolDecoderPocsag* instance = context;
     furi_string_free(instance->msg);
     furi_string_free(instance->msg);
     furi_string_free(instance->done_msg);
     furi_string_free(instance->done_msg);
+    if(instance->generic.result_msg != NULL) {
+        furi_string_free(instance->generic.result_msg);
+    }
+    if(instance->generic.result_ric != NULL) {
+        furi_string_free(instance->generic.result_ric);
+    }
     free(instance);
     free(instance);
 }
 }