[evolution/webkit-composer] Fix leak of uri in editor_widget_button_release_event



commit 0540a88c38cf1c265def74052e92f160966ab05e
Author: Tomas Popela <tpopela redhat com>
Date:   Fri Oct 11 13:18:21 2013 +0200

    Fix leak of uri in editor_widget_button_release_event

 e-util/e-editor-widget.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/e-util/e-editor-widget.c b/e-util/e-editor-widget.c
index abae6fa..f458b88 100644
--- a/e-util/e-editor-widget.c
+++ b/e-util/e-editor-widget.c
@@ -969,11 +969,14 @@ editor_widget_button_release_event (GtkWidget *widget,
                        toplevel = gtk_widget_get_toplevel (widget);
                        screen = gtk_window_get_screen (GTK_WINDOW (toplevel));
                        gtk_show_uri (screen, uri, event->time, NULL);
+                       g_free (uri);
                }
 
                return TRUE;
        }
 
+       g_free (uri);
+
        /* Chain up to parent's button_release_event() method. */
        return GTK_WIDGET_CLASS (e_editor_widget_parent_class)->
                button_release_event (widget, event);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]