Skip to content

Commit

Permalink
Fix NULL Pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
jblanked committed Nov 7, 2024
1 parent 0d50605 commit 4966c64
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
6 changes: 1 addition & 5 deletions apps/flip_store_apps.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ void flip_catalog_free()
free(flip_catalog[i].app_build_id);
}
}
free(flip_catalog);
}

// Utility function to parse JSON incrementally from a file
Expand Down Expand Up @@ -434,10 +433,7 @@ bool flip_store_install_app(Canvas *canvas, char *category)
int32_t flip_store_handle_app_list(FlipStoreApp *app, int32_t success_view, char *category, Submenu **submenu)
{
// reset the flip_catalog
if (flip_catalog)
{
flip_catalog_free();
}
flip_catalog_free();

if (!app)
{
Expand Down
1 change: 0 additions & 1 deletion callback/flip_store_callback.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ uint32_t callback_to_app_list(void *context)
flip_store_success = false;
flip_store_saved_data = false;
flip_store_saved_success = false;
flip_catalog_free();
return FlipStoreViewAppList;
}

Expand Down

0 comments on commit 4966c64

Please sign in to comment.