Commit 01c61be8 authored by Cosimo Cecchi's avatar Cosimo Cecchi

all: plug some memory leaks

parent bdb71b79
...@@ -377,8 +377,11 @@ get_overlay_child (GeditOverlay *overlay, ...@@ -377,8 +377,11 @@ get_overlay_child (GeditOverlay *overlay,
if (in_widget == widget) if (in_widget == widget)
{ {
overlay_child = GEDIT_OVERLAY_CHILD (child); overlay_child = GEDIT_OVERLAY_CHILD (child);
g_object_unref (in_widget);
break; break;
} }
g_object_unref (in_widget);
} }
} }
......
...@@ -206,6 +206,8 @@ nautilus_floating_bar_constructed (GObject *obj) ...@@ -206,6 +206,8 @@ nautilus_floating_bar_constructed (GObject *obj)
NULL); NULL);
self->priv->label_widget = w; self->priv->label_widget = w;
gtk_widget_show (w); gtk_widget_show (w);
g_object_unref (box);
} }
static void static void
...@@ -318,6 +320,8 @@ nautilus_floating_bar_add_action (NautilusFloatingBar *self, ...@@ -318,6 +320,8 @@ nautilus_floating_bar_add_action (NautilusFloatingBar *self,
g_signal_connect (button, "clicked", g_signal_connect (button, "clicked",
G_CALLBACK (action_button_clicked_cb), self); G_CALLBACK (action_button_clicked_cb), self);
g_object_unref (box);
} }
void void
...@@ -344,4 +348,7 @@ nautilus_floating_bar_cleanup_actions (NautilusFloatingBar *self) ...@@ -344,4 +348,7 @@ nautilus_floating_bar_cleanup_actions (NautilusFloatingBar *self)
gtk_widget_destroy (widget); gtk_widget_destroy (widget);
} }
} }
g_object_unref (box);
g_list_free (children);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment