shell-global: Fix a few memory leaks
https://bugzilla.gnome.org/show_bug.cgi?id=710104
This commit is contained in:
parent
09c6e6427a
commit
4548859509
@ -1779,6 +1779,8 @@ shell_global_set_runtime_state (ShellGlobal *global,
|
||||
NULL, FALSE, G_FILE_CREATE_REPLACE_DESTINATION,
|
||||
NULL, NULL, NULL);
|
||||
}
|
||||
|
||||
g_object_unref (path);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1822,5 +1824,8 @@ shell_global_get_runtime_state (ShellGlobal *global,
|
||||
g_mapped_file_unref (mfile);
|
||||
}
|
||||
|
||||
g_object_unref (path);
|
||||
g_free (pathstr);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user