aboutsummaryrefslogtreecommitdiff
path: root/src/Infobox/Infobox.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Infobox/Infobox.c')
-rw-r--r--src/Infobox/Infobox.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Infobox/Infobox.c b/src/Infobox/Infobox.c
new file mode 100644
index 0000000..5043c05
--- /dev/null
+++ b/src/Infobox/Infobox.c
@@ -0,0 +1,13 @@
+#include "Infobox.h"
+#include <stdlib.h>
+
+void free_infobox(InfoBox *info) {
+ if (info->title)
+ free(info->title);
+ if (info->thumbnail_url)
+ free(info->thumbnail_url);
+ if (info->extract)
+ free(info->extract);
+ if (info->url)
+ free(info->url);
+}