Commit d8c57640 authored by Paolo Bacchilega's avatar Paolo Bacchilega
Browse files

fixed minor memory leaks

parent 96b94869
......@@ -173,6 +173,7 @@ idle_call_exec (IdleCall *call,
(GDestroyNotify) idle_call_free);
else {
(*call->func) (call->data);
idle_call_free (call);
return 0;
}
}
......@@ -684,6 +685,8 @@ _g_replace (const char *str,
gstr = g_string_append (gstr, to_str);
}
g_strfreev (tokens);
return g_string_free (gstr, FALSE);
}
......
......@@ -274,7 +274,6 @@ gth_cell_renderer_thumbnail_render (GtkCellRenderer *cell,
GdkRectangle draw_rect;
GdkRectangle image_rect;
cairo_t *cr;
cairo_path_t *cr_path;
GdkPixbuf *pixbuf;
GdkPixbuf *colorized = NULL;
int B;
......@@ -333,7 +332,6 @@ gth_cell_renderer_thumbnail_render (GtkCellRenderer *cell,
cairo_rel_line_to (cr, - (thumb_rect.width - (R * 2)), 0);
cairo_arc (cr, thumb_rect.x + R, thumb_rect.y + thumb_rect.height - R, R, 0.5 * M_PI, 1.0 * M_PI);
cairo_close_path (cr);
cr_path = cairo_copy_path (cr);
cairo_fill (cr);
}
......
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