[recipes/pksadiq-wip/sadiq: 2/2] ingredient-item: free data on finalize
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes/pksadiq-wip/sadiq: 2/2] ingredient-item: free data on finalize
- Date: Sun, 7 May 2017 19:25:10 +0000 (UTC)
commit 5af4d1a1647237a9bd1b7f37ccc9e7843f1b7ed6
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date: Fri Jan 20 16:37:20 2017 +0530
ingredient-item: free data on finalize
src/gr-ingredient-item.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/gr-ingredient-item.c b/src/gr-ingredient-item.c
index 591ceab..3c21c73 100644
--- a/src/gr-ingredient-item.c
+++ b/src/gr-ingredient-item.c
@@ -45,6 +45,11 @@ enum {
static void
gr_ingredient_item_finalize (GObject *object)
{
+ GrIngredientItem *self = (GrIngredientItem *)object;
+
+ g_free (self->ingredient);
+ g_free (self->unit);
+
G_OBJECT_CLASS (gr_ingredient_item_parent_class)->finalize (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]