diff options
Diffstat (limited to 'src/common.c')
-rw-r--r-- | src/common.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/common.c b/src/common.c index 41628c4f..7888a1dc 100644 --- a/src/common.c +++ b/src/common.c @@ -79,6 +79,14 @@ auto_free_gchar(gchar** str) } void +auto_free_gcharv(gchar*** args) +{ + if (args == NULL) + return; + g_strfreev(*args); +} + +void auto_free_char(char** str) { if (str == NULL) |