From 01c61be847dbb30f7392794ad0fec6228e82904d Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Sat, 19 Feb 2011 23:45:05 -0500 Subject: all: plug some memory leaks --- src/gedit-overlay.c | 3 +++ src/nautilus-floating-bar.c | 7 +++++++ 2 files changed, 10 insertions(+) (limited to 'src') diff --git a/src/gedit-overlay.c b/src/gedit-overlay.c index d9a634a9e..2941de6ba 100644 --- a/src/gedit-overlay.c +++ b/src/gedit-overlay.c @@ -377,8 +377,11 @@ 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); } } diff --git a/src/nautilus-floating-bar.c b/src/nautilus-floating-bar.c index 10d8dfd83..65c0afbcf 100644 --- a/src/nautilus-floating-bar.c +++ b/src/nautilus-floating-bar.c @@ -206,6 +206,8 @@ nautilus_floating_bar_constructed (GObject *obj) NULL); self->priv->label_widget = w; gtk_widget_show (w); + + g_object_unref (box); } static void @@ -318,6 +320,8 @@ nautilus_floating_bar_add_action (NautilusFloatingBar *self, g_signal_connect (button, "clicked", G_CALLBACK (action_button_clicked_cb), self); + + g_object_unref (box); } void @@ -344,4 +348,7 @@ nautilus_floating_bar_cleanup_actions (NautilusFloatingBar *self) gtk_widget_destroy (widget); } } + + g_object_unref (box); + g_list_free (children); } -- cgit v1.2.1