Commit 0179c9a2 authored by Paolo Borelli's avatar Paolo Borelli

small mem leaks

parent ecb2c083
2006-08-17 Paolo Borelli <pborelli@katamail.com>
* gedit/gedit-io-error-message-area.c: small memory leaks on error.
2006-08-16 Paolo Borelli <pborelli@katamail.com>
* gedit-window.c:
* gedit-app.[ch]:
* gedit/gedit-window.c:
* gedit/gedit-app.[ch]:
properly use window::dispose to drop the references to the ui
manager and to disconnect the recents_changed callback. It should
......
......@@ -334,6 +334,7 @@ gedit_unrecoverable_loading_error_message_area_new (const gchar *uri,
message_area = create_unrecoverable_error_message_area (error_message,
message_details);
g_free (uri_for_display);
g_free (error_message);
g_free (message_details);
......@@ -554,6 +555,7 @@ gedit_unrecoverable_reverting_error_message_area_new (const gchar *uri,
message_area = create_unrecoverable_error_message_area (error_message,
message_details);
g_free (uri_for_display);
g_free (error_message);
g_free (message_details);
......@@ -726,6 +728,8 @@ gedit_conversion_error_while_loading_message_area_new (
message_area = create_conversion_error_message_area (error_message, message_details);
g_free (uri_for_display);
g_free (encoding_name);
g_free (error_message);
g_free (message_details);
......@@ -777,6 +781,8 @@ gedit_conversion_error_while_saving_message_area_new (
error_message,
message_details);
g_free (uri_for_display);
g_free (encoding_name);
g_free (error_message);
g_free (message_details);
......@@ -1315,6 +1321,7 @@ gedit_unrecoverable_saving_error_message_area_new (const gchar *uri,
message_area = create_unrecoverable_error_message_area (error_message,
message_details);
g_free (uri_for_display);
g_free (error_message);
g_free (message_details);
......
......@@ -474,7 +474,7 @@ recoverable_loading_error_message_area_response (GeditMessageArea *message_area,
GeditTab *tab)
{
GeditDocument *doc;
const gchar *uri;
gchar *uri;
doc = gedit_tab_get_document (tab);
g_return_if_fail (GEDIT_IS_DOCUMENT (doc));
......@@ -507,11 +507,13 @@ recoverable_loading_error_message_area_response (GeditMessageArea *message_area,
else
{
_gedit_recent_remove (GEDIT_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (tab))), uri);
unrecoverable_loading_error_message_area_response (message_area,
response_id,
tab);
}
g_free (uri);
}
static void
......@@ -970,6 +972,7 @@ document_loaded (GeditDocument *document,
GTK_RESPONSE_CANCEL);
gtk_widget_show (emsg);
g_free (uri);
return;
}
......
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