Fixed some memory leaks in capabilities

This commit is contained in:
James Booth
2013-01-23 00:21:05 +00:00
parent 114d251b68
commit a48b48b787
4 changed files with 45 additions and 26 deletions

View File

@@ -44,6 +44,12 @@
} \
}
#define GFREE_SET_NULL(resource) \
{ \
g_free(resource); \
resource = NULL; \
}
void p_slist_free_full(GSList *items, GDestroyNotify free_func);
void create_dir(char *name);
char * str_replace(const char *string, const char *substr,