]> git.0d.be Git - empathy.git/blobdiff - src/empathy-debug-window.c
debug-window: fix messages array leak
[empathy.git] / src / empathy-debug-window.c
index 9e3e7f38169e5c365f1d9bff7e895128594c1356..0a1d7f78657de3c751cdb69912e52b9a08021e59 100644 (file)
 
 #include "config.h"
 
-#include <string.h>
-
 #include <glib/gi18n.h>
-#include <gtk/gtk.h>
-#include <gio/gio.h>
-#include <gdk/gdkkeysyms.h>
 #include <libsoup/soup.h>
 
 #define DEBUG_FLAG EMPATHY_DEBUG_OTHER
 #include <libempathy/empathy-debug.h>
 #include <libempathy/empathy-utils.h>
 
-#include <libempathy-gtk/empathy-account-chooser.h>
 #include <libempathy-gtk/empathy-geometry.h>
 #include <libempathy-gtk/empathy-ui-utils.h>
 
-#include <telepathy-glib/telepathy-glib.h>
-
-#include "extensions/extensions.h"
-
 #include "empathy-debug-window.h"
 
 G_DEFINE_TYPE (EmpathyDebugWindow, empathy_debug_window,
@@ -420,6 +410,7 @@ debug_window_get_messages_cb (GObject *object,
           COL_PROXY, debug,
           -1);
     }
+  g_ptr_array_unref (messages);
 
   g_free (proxy_service_name);
 
@@ -2027,12 +2018,12 @@ am_prepared_cb (GObject *am,
   gtk_info_bar_set_message_type (GTK_INFO_BAR (infobar), GTK_MESSAGE_INFO);
 
   label = gtk_label_new (
-        _("Even if they don't display passwords, logs can contain sensible "
+        _("Even if they don't display passwords, logs can contain sensitive "
           "information such as your list of contacts or the messages you "
           "recently sent or received.\nIf you don't want to see such "
           "information available in a public bug report, you "
           "can choose to limit the visibility of your bug to "
-          "Empathy developpers when reporting it by displaying "
+          "Empathy developers when reporting it by displaying "
           "the advanced fields in the "
           "<a href=\"https://bugzilla.gnome.org/enter_bug.cgi?product=empathy\">"
           "bug report</a>."));
@@ -2056,7 +2047,7 @@ am_prepared_cb (GObject *am,
       G_CALLBACK (debug_window_button_press_event_cb), object);
 
   renderer = gtk_cell_renderer_text_new ();
-  g_object_set (renderer, "yalign", 0, NULL);
+  g_object_set (renderer, "yalign", (gfloat) 0, NULL);
 
   gtk_tree_view_insert_column_with_data_func (GTK_TREE_VIEW (self->priv->view),
       -1, _("Time"), renderer,