[gnome-photos/gnome-3-12] facebook-item: Plug a memory leak
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/gnome-3-12] facebook-item: Plug a memory leak
- Date: Tue, 15 Apr 2014 14:33:52 +0000 (UTC)
commit 02b4cca7099ee582fe330cd64c68d88188d93ffb
Author: Debarshi Ray <debarshir gnome org>
Date: Tue Apr 15 15:19:53 2014 +0200
facebook-item: Plug a memory leak
Fixes: https://bugzilla.gnome.org/727205
src/photos-facebook-item.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-facebook-item.c b/src/photos-facebook-item.c
index c0acf02..17bbc04 100644
--- a/src/photos-facebook-item.c
+++ b/src/photos-facebook-item.c
@@ -77,7 +77,7 @@ photos_facebook_get_gfbgraph_photo (PhotosBaseItem *item, GCancellable *cancella
static gboolean
photos_facebook_item_create_thumbnail (PhotosBaseItem *item, GCancellable *cancellable, GError **error)
{
- GFBGraphPhoto *photo;
+ GFBGraphPhoto *photo = NULL;
const GFBGraphPhotoImage *thumbnail_image;
gchar *local_path = NULL, *local_dir = NULL;
GFile *local_file = NULL, *remote_file = NULL;
@@ -119,6 +119,7 @@ photos_facebook_item_create_thumbnail (PhotosBaseItem *item, GCancellable *cance
g_free (local_dir);
g_clear_object (&local_file);
g_clear_object (&remote_file);
+ g_clear_object (&photo);
return ret_val;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]