Commit 62b0a028 authored by Boris Egorov's avatar Boris Egorov Committed by Sébastien Wilmet

Fix some memory leaks [cppcheck]

Signed-off-by: default avatarBoris Egorov <egorov@linux.com>

https://bugzilla.gnome.org/show_bug.cgi?id=740382
parent 658ceb8b
......@@ -657,7 +657,10 @@ file_copy (const gchar *name,
return FALSE;
if (!g_file_set_contents (dest_name, contents, length, error))
{
g_free (contents);
return FALSE;
}
g_free (contents);
......@@ -709,10 +712,13 @@ install_style_scheme (const gchar *fname)
if (!file_copy (fname, new_file_name, &error))
{
g_free (new_file_name);
g_free (dirname);
g_message ("Cannot install style scheme:\n%s",
error->message);
g_error_free (error);
return NULL;
}
......
......@@ -1194,9 +1194,11 @@ gedit_utils_drop_get_uris (GtkSelectionData *selection_data)
if (*uri_list == NULL)
{
g_free(uri_list);
g_strfreev (uris);
return NULL;
}
g_strfreev (uris);
return uri_list;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment