[gimp] app: fix leak and remove unused variable in file-utils.c
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: fix leak and remove unused variable in file-utils.c
- Date: Tue, 8 Jul 2014 18:30:58 +0000 (UTC)
commit f049ac68b831b3fcc2991447a0cde26484778b89
Author: Michael Natterer <mitch gimp org>
Date: Tue Jul 8 20:23:10 2014 +0200
app: fix leak and remove unused variable in file-utils.c
app/file/file-utils.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/app/file/file-utils.c b/app/file/file-utils.c
index b369e0d..32feca5 100644
--- a/app/file/file-utils.c
+++ b/app/file/file-utils.c
@@ -96,7 +96,6 @@ file_utils_filename_to_file (Gimp *gimp,
{
GFile *file;
gchar *absolute;
- gchar *uri;
GError *temp_error = NULL;
g_return_val_if_fail (GIMP_IS_GIMP (gimp), NULL);
@@ -134,6 +133,8 @@ file_utils_filename_to_file (Gimp *gimp,
return NULL;
}
+ g_object_unref (file);
+
if (! g_path_is_absolute (filename))
{
gchar *current;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]