summaryrefslogtreecommitdiff
path: root/src/extractors/haokan.c
diff options
context:
space:
mode:
authorMole Shang <[email protected]>2024-03-02 12:55:03 +0800
committerMole Shang <[email protected]>2024-03-02 12:55:03 +0800
commit74ebee5d3a81a39766ba8cd436a548449ea887b0 (patch)
tree69c238d2bff0d69aa4778d22e21de8d519b00dff /src/extractors/haokan.c
parent62c193bd4e464ec9d847b8abff21e10dfc7b511e (diff)
downloadhinata-74ebee5d3a81a39766ba8cd436a548449ea887b0.tar.gz
hinata-74ebee5d3a81a39766ba8cd436a548449ea887b0.tar.bz2
hinata-74ebee5d3a81a39766ba8cd436a548449ea887b0.zip
tree-wide: use FREE_AND_NULLIFY macro and reformat code
Jeez idk why i forgot the pass-by-value feature, so the original version never gets the pointer nullified. Fix it by using our favourite C-style macro.
Diffstat (limited to 'src/extractors/haokan.c')
-rw-r--r--src/extractors/haokan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/extractors/haokan.c b/src/extractors/haokan.c
index f289c3e..b3e943d 100644
--- a/src/extractors/haokan.c
+++ b/src/extractors/haokan.c
@@ -38,8 +38,8 @@ void haokan_extract(Options *options) {
end:
free_str_array(&results);
- free_and_nullify(filename);
- free_and_nullify(videoURL);
+ FREE_AND_NULLIFY(filename);
+ FREE_AND_NULLIFY(videoURL);
return;
}
free_str_array(&results);