Commit 0f87bee3 authored by Mohammed Sadiq's avatar Mohammed Sadiq

application: Fix some leaks

parent 2851972c
......@@ -209,7 +209,7 @@ chatty_application_open (GApplication *application,
chatty_data_t *chatty = chatty_get_data ();
for (i = 0; i < n_files; i++) {
char *uri = g_file_get_uri (files[i]);
char *uri;
if (g_file_has_uri_scheme (files[i], "sms")) {
uri = g_file_get_uri (files[i]);
......@@ -217,6 +217,7 @@ chatty_application_open (GApplication *application,
if (gtk_application_get_active_window (GTK_APPLICATION (application))) {
chatty_blist_add_buddy_from_uri (uri);
} else {
g_free (chatty->uri);
chatty->uri = g_strdup (uri);
}
......
......@@ -68,7 +68,7 @@ typedef struct {
ChattyCmlOptions cml_options;
const char *uri;
char *uri;
struct {
GtkWidget *label_chat_id;
......
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