projects
/
modest
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixes leak 2/26
[modest]
/
src
/
modest-mail-operation-queue.c
diff --git
a/src/modest-mail-operation-queue.c
b/src/modest-mail-operation-queue.c
index
352c26f
..
01a36b9
100644
(file)
--- a/
src/modest-mail-operation-queue.c
+++ b/
src/modest-mail-operation-queue.c
@@
-453,14
+453,15
@@
static void
on_find_by_source_foreach (gpointer op, gpointer data)
{
FindBySourceInfo *info = (FindBySourceInfo*) data;
on_find_by_source_foreach (gpointer op, gpointer data)
{
FindBySourceInfo *info = (FindBySourceInfo*) data;
- GObject *source;
+ GObject *source = NULL;
source = modest_mail_operation_get_source (MODEST_MAIL_OPERATION (op));
source = modest_mail_operation_get_source (MODEST_MAIL_OPERATION (op));
- if ( info->source == source) {
+ if (info->source == source) {
g_object_ref (G_OBJECT (op));
*(info->new_list) = g_slist_prepend (*(info->new_list), MODEST_MAIL_OPERATION (op));
}
g_object_ref (G_OBJECT (op));
*(info->new_list) = g_slist_prepend (*(info->new_list), MODEST_MAIL_OPERATION (op));
}
- g_object_unref (source);
+ if (source)
+ g_object_unref (source);
}
GSList*
}
GSList*