浏览代码

fix furi_check on app end (I think we're done now)

with all the bugs at least. now I'll add some new features and get some users to test
jblanked 10 月之前
父节点
当前提交
e1ddad96eb
共有 2 个文件被更改,包括 6 次插入7 次删除
  1. 1 1
      callback/callback.c
  2. 5 6
      free/free.c

+ 1 - 1
callback/callback.c

@@ -449,7 +449,7 @@ uint32_t callback_to_messages_user_choices(void *context)
 uint32_t callback_exit_app(void *context)
 {
     // Exit the application
-    free_all(true, true, context);
+    UNUSED(context);
     return VIEW_NONE;
 }
 

+ 5 - 6
free/free.c

@@ -250,19 +250,15 @@ void free_flip_social_app(FlipSocialApp *app)
     {
         view_dispatcher_remove_view(app->view_dispatcher, FlipSocialViewLoggedOutSubmenu);
         submenu_free(app->submenu_logged_out);
+        app->submenu_logged_out = NULL;
     }
     if (app->submenu_logged_in)
     {
         view_dispatcher_remove_view(app->view_dispatcher, FlipSocialViewLoggedInSubmenu);
         submenu_free(app->submenu_logged_in);
+        app->submenu_logged_in = NULL;
     }
 
-    if (app->fhttp)
-        flipper_http_free(app->fhttp);
-
-    if (app->view_dispatcher)
-        view_dispatcher_free(app->view_dispatcher);
-
     // Free the app structure members
     if (app->wifi_ssid_logged_out)
         free(app->wifi_ssid_logged_out);
@@ -344,6 +340,9 @@ void free_flip_social_app(FlipSocialApp *app)
         app->empty_screen = NULL;
     }
 
+    if (app->view_dispatcher)
+        view_dispatcher_free(app->view_dispatcher);
+
     // Free the app structure
     if (app_instance)
         free(app_instance);