[gnome-calendar] month-view: fix memory leak
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] month-view: fix memory leak
- Date: Fri, 26 Dec 2014 15:13:18 +0000 (UTC)
commit 2261ea69093fda666981af787b5745c5623b0cb9
Author: Erick Pérez Castellanos <erick red gmail com>
Date: Thu Dec 25 18:47:54 2014 -0500
month-view: fix memory leak
Remove unneeded debug instructions
src/gcal-month-view.c | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/src/gcal-month-view.c b/src/gcal-month-view.c
index dda4619..a29abdf 100644
--- a/src/gcal-month-view.c
+++ b/src/gcal-month-view.c
@@ -973,9 +973,6 @@ gcal_month_view_size_allocate (GtkWidget *widget,
end = last_cell;
}
- g_debug ("[calculate] event %s from: %d -> %d", gcal_event_widget_get_summary (GCAL_EVENT_WIDGET
(child_widget)),
- start, end);
-
visible = get_widget_parts (start, end, natural_height, vertical_cell_space, size_left, cells,
lengths);
}
@@ -994,9 +991,6 @@ gcal_month_view_size_allocate (GtkWidget *widget,
child_allocation.width = cell_width * g_array_index (lengths, gint, i);
child_allocation.height = natural_height;
- g_debug ("[allocate] event %s from: %d -- %d --> %d ", gcal_event_widget_get_summary
(GCAL_EVENT_WIDGET (child_widget)),
- cell_idx, g_array_index (lengths, gint, i), cell_idx + g_array_index (lengths, gint,
i));
-
if (i != 0)
{
child_widget = gcal_event_widget_clone (GCAL_EVENT_WIDGET (child_widget));
@@ -1008,7 +1002,7 @@ gcal_month_view_size_allocate (GtkWidget *widget,
aux = g_list_append (aux, child_widget);
}
gtk_widget_size_allocate (child_widget, &child_allocation);
- g_hash_table_remove (priv->hidden_as_overflow, g_strdup (uuid));
+ g_hash_table_remove (priv->hidden_as_overflow, uuid);
/* update size_left */
for (j = 0; j < g_array_index (lengths, gint, i); j++)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]