[gnome-photos/wip/search: 17/32] base-item: Plug a memory leak
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/search: 17/32] base-item: Plug a memory leak
- Date: Tue, 28 Jan 2014 07:10:58 +0000 (UTC)
commit 5c2a657565c2a4908d6ebb8bd3c0e0db583deb69
Author: Debarshi Ray <debarshir gnome org>
Date: Fri Jan 24 10:15:57 2014 +0100
base-item: Plug a memory leak
src/photos-base-item.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/photos-base-item.c b/src/photos-base-item.c
index 5b2122b..7629834 100644
--- a/src/photos-base-item.c
+++ b/src/photos-base-item.c
@@ -1,6 +1,6 @@
/*
* Photos - access, organize and share your photos on GNOME
- * Copyright © 2012, 2013 Red Hat, Inc.
+ * Copyright © 2012, 2013, 2014 Red Hat, Inc.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -607,7 +607,7 @@ photos_base_item_update_icon_from_type (PhotosBaseItem *self)
{
PhotosBaseItemPrivate *priv = self->priv;
GIcon *icon = NULL;
- GtkIconInfo *info;
+ GtkIconInfo *info = NULL;
GtkIconTheme *theme;
gint icon_size;
@@ -630,6 +630,9 @@ photos_base_item_update_icon_from_type (PhotosBaseItem *self)
}
photos_base_item_check_effects_and_update_info (self);
+
+ g_clear_object (&info);
+ g_clear_object (&icon);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]