[nautilus] all: plug some memory leaks
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] all: plug some memory leaks
- Date: Sun, 20 Feb 2011 04:46:45 +0000 (UTC)
commit 01c61be847dbb30f7392794ad0fec6228e82904d
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sat Feb 19 23:45:05 2011 -0500
all: plug some memory leaks
src/gedit-overlay.c | 3 +++
src/nautilus-floating-bar.c | 7 +++++++
2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/gedit-overlay.c b/src/gedit-overlay.c
index d9a634a..2941de6 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 10d8dfd..65c0afb 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]