[gedit] Do not leak the objects.
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Do not leak the objects.
- Date: Tue, 15 Feb 2011 17:01:42 +0000 (UTC)
commit 2b62c536c7cb6afbc6e8a72bc4873d924ce2c612
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Tue Feb 15 15:46:50 2011 +0100
Do not leak the objects.
gedit/gedit-animated-overlay.c | 5 +++++
gedit/gedit-overlay.c | 4 ++++
2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/gedit/gedit-animated-overlay.c b/gedit/gedit-animated-overlay.c
index d88e73f..e5e508d 100644
--- a/gedit/gedit-animated-overlay.c
+++ b/gedit/gedit-animated-overlay.c
@@ -159,11 +159,16 @@ get_animated_widget (GeditAnimatedOverlay *overlay,
if (in_widget == widget)
{
anim_widget = GEDIT_THEATRICS_ANIMATED_WIDGET (child);
+ g_object_unref (in_widget);
+
break;
}
+
+ g_object_unref (in_widget);
}
}
+ g_object_unref (main_widget);
g_list_free (children);
return anim_widget;
diff --git a/gedit/gedit-overlay.c b/gedit/gedit-overlay.c
index f9e442c..05f68de 100644
--- a/gedit/gedit-overlay.c
+++ b/gedit/gedit-overlay.c
@@ -396,8 +396,12 @@ get_overlay_child (GeditOverlay *overlay,
if (in_widget == widget)
{
overlay_child = GEDIT_OVERLAY_CHILD (child);
+ g_object_unref (in_widget);
+
break;
}
+
+ g_object_unref (in_widget);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]