EHTMLEditorImageDialog - Don't leak uri variable
This commit is contained in:
@ -65,16 +65,19 @@ html_editor_image_dialog_set_src (EHTMLEditorImageDialog *dialog)
|
||||
EHTMLEditor *editor;
|
||||
EHTMLEditorSelection *editor_selection;
|
||||
EHTMLEditorView *view;
|
||||
gchar *uri;
|
||||
|
||||
editor = e_html_editor_dialog_get_editor (E_HTML_EDITOR_DIALOG (dialog));
|
||||
view = e_html_editor_get_view (editor);
|
||||
editor_selection = e_html_editor_view_get_selection (view);
|
||||
|
||||
uri = gtk_file_chooser_get_uri (
|
||||
GTK_FILE_CHOOSER (dialog->priv->file_chooser));
|
||||
|
||||
e_html_editor_selection_replace_image_src (
|
||||
editor_selection,
|
||||
WEBKIT_DOM_ELEMENT (dialog->priv->image),
|
||||
gtk_file_chooser_get_uri (
|
||||
GTK_FILE_CHOOSER (dialog->priv->file_chooser)));
|
||||
editor_selection, WEBKIT_DOM_ELEMENT (dialog->priv->image), uri);
|
||||
|
||||
g_fre (uri);
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
Reference in New Issue
Block a user