new realization of cancel download [need review]

This commit is contained in:
2026-06-05 16:27:05 +03:00
parent ae81b806eb
commit 4be4bb926a
6 changed files with 94 additions and 55 deletions
+6 -5
View File
@@ -10,10 +10,11 @@
arg = NULL; \
}
#define FILE_CLEAN(app) \
if (app->query_args->file != NULL) { \
FREE_MLC(app->query_args->file->name); \
FREE_MLC(app->query_args->file->path); \
FREE_MLC(app->query_args->file); \
#define FILE_CLEAN(file) \
if (file != NULL) { \
FREE_MLC(file->name); \
FREE_MLC(file->path); \
FREE_MLC(file); \
file = NULL; \
}
#endif