mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2025-01-13 13:40:54 +00:00
Remove freep warnings (#1182)
This commit is contained in:
parent
863eacc440
commit
96de55429d
@ -59,12 +59,13 @@ void millis_to_time(LLONG milli, unsigned *hours, unsigned *minutes,
|
||||
}
|
||||
|
||||
/* Frees the given pointer */
|
||||
void freep(void **arg)
|
||||
void freep(void *arg)
|
||||
{
|
||||
if (arg)
|
||||
void **ptr = arg;
|
||||
if (*ptr)
|
||||
{
|
||||
free(*arg);
|
||||
*arg = NULL;
|
||||
free(*ptr);
|
||||
*ptr = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -42,7 +42,7 @@
|
||||
// Declarations
|
||||
void fdprintf(int fd, const char *fmt, ...);
|
||||
void millis_to_time(LLONG milli, unsigned *hours, unsigned *minutes,unsigned *seconds, unsigned *ms);
|
||||
void freep(void **arg);
|
||||
void freep(void *arg);
|
||||
void dbg_print(LLONG mask, const char *fmt, ...);
|
||||
unsigned char *debug_608_to_ASC(unsigned char *ccdata, int channel);
|
||||
int add_cc_sub_text(struct cc_subtitle *sub, char *str, LLONG start_time,
|
||||
|
Loading…
Reference in New Issue
Block a user