mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-19 18:26:22 +00:00
Change char->free to auto_char char for autocleanup
Replace `gchar` and `g_free` to `auto_gchar` Correct certain `char` functions/variables to `gchar` Related to #1819. Edited by @jubalh.
This commit is contained in:
@@ -65,9 +65,8 @@ c_plugin_create(const char* const filename)
|
||||
ProfPlugin* plugin;
|
||||
void* handle = NULL;
|
||||
|
||||
char* plugins_dir = files_get_data_path(DIR_PLUGINS);
|
||||
auto_gchar gchar* plugins_dir = files_get_data_path(DIR_PLUGINS);
|
||||
GString* path = g_string_new(plugins_dir);
|
||||
free(plugins_dir);
|
||||
g_string_append(path, "/");
|
||||
g_string_append(path, filename);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user