jblanked 1 год назад
Родитель
Сommit
649f47c4b2
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      game/enemy.c

+ 2 - 0
game/enemy.c

@@ -59,6 +59,8 @@ static void enemy_generic_free(void *context)
         FURI_LOG_E("Game", "Enemy generic free: Invalid context");
         FURI_LOG_E("Game", "Enemy generic free: Invalid context");
         return;
         return;
     }
     }
+    free(context);
+    context = NULL;
     if (enemy_context_generic)
     if (enemy_context_generic)
     {
     {
         free(enemy_context_generic);
         free(enemy_context_generic);