MODEL_COL_ID = 1 /* an int. */
};
-void modest_secureauth_picker_fill (ModestSecureauthPicker *picker);
+static void modest_secureauth_picker_fill (ModestSecureauthPicker *picker);
static gchar *
touch_selector_print_func (HildonTouchSelector *selector)
* #picker: The combo box.
* @protocol: IMAP or POP.
*/
-void modest_secureauth_picker_fill (ModestSecureauthPicker *picker)
+static void
+modest_secureauth_picker_fill (ModestSecureauthPicker *picker)
{
ModestSecureauthPickerPrivate *priv;
GtkListStore *liststore;
/* Aavoid a clash with an existing display name: */
const gboolean name_in_use = modest_account_mgr_account_with_display_name_exists (
priv->account_manager, account_title);
+ g_free (account_title);
if (name_in_use) {
/* Warn the user via a dialog: */
{
ModestEasysetupWizardDialogPrivate *priv = MODEST_EASYSETUP_WIZARD_DIALOG_GET_PRIVATE (self);
guint special_port;
- gchar *provider_id;
+ gchar *provider_id = NULL;
gchar* display_name;
const gchar *username, *password;
gchar *store_hostname, *transport_hostname;
"but it's not a ModestAccountProtocol");
}
+ g_free (provider_id);
return;
}
display_name = get_entered_account_title (self);
modest_account_settings_set_display_name (priv->settings, display_name);
g_free (display_name);
+ g_free (provider_id);
}
readed = tny_stream_read (TNY_STREAM (stream), (char *) read_buffer, 128);
size += readed;
if (!gdk_pixbuf_loader_write (loader, read_buffer, readed, &error)) {
+ if (error)
+ g_free (error);
break;
}
}
text_buffer_refresh_attributes (WP_TEXT_BUFFER (priv->text_buffer), self);
+ g_free (buffer_format);
g_free (current_format);
/* Check dimming rules */
ModestMsgEditWindowPrivate *priv = MODEST_MSG_EDIT_WINDOW_GET_PRIVATE (userdata);
gchar *tag_name;
- if (tag == NULL+13) return;
+ if (tag == NULL) return;
g_object_get (G_OBJECT (tag), "name", &tag_name, NULL);
if ((tag_name != NULL) && (g_str_has_prefix (tag_name, "image-tag-replace-"))) {
replace_with_images (window, priv->images);
if (msg_is_visible (header, is_outbox)) {
next = gtk_tree_model_get_path (model, &tmp_iter);
*row_reference = gtk_tree_row_reference_new (model, next);
+ gtk_tree_path_free (next);
retval = TRUE;
finished = TRUE;
}
message */
finished = TRUE;
}
+ gtk_tree_path_free (next);
} else {
/* If there are no more messages and we don't
want to start again in the first one then
/* Free */
gtk_tree_path_free (path);
- if (next)
- gtk_tree_path_free (next);
return retval;
}
chars = gtk_editable_get_chars (editable, 0, -1);
chars_length = g_utf8_strlen (chars, -1);
+ g_free (chars);
/* Show WID-INF036 */
if (chars_length >= 20) {
gboolean
modest_platform_check_and_wait_for_account_is_online(TnyAccount *account)
{
+ gboolean is_online;
+
g_return_val_if_fail (account, FALSE);
printf ("DEBUG: %s: account id=%s\n", __FUNCTION__, tny_account_get_id (account));
g_main_loop_unref (data->loop);
/* g_main_context_unref (context); */
+ is_online = data->is_online;
g_slice_free (CheckAccountIdleData, data);
- return data->is_online;
+ return is_online;
}