projects
/
modest
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15365f2
)
Fix memory leak in select_next_valid_row()
author
Alberto Garcia
<agarcia@igalia.com>
Mon, 21 Jan 2008 18:55:30 +0000
(18:55 +0000)
committer
Alberto Garcia
<agarcia@igalia.com>
Mon, 21 Jan 2008 18:55:30 +0000
(18:55 +0000)
pmo-trunk-r4072
src/maemo/modest-msg-view-window.c
patch
|
blob
|
history
diff --git
a/src/maemo/modest-msg-view-window.c
b/src/maemo/modest-msg-view-window.c
index
cfd7756
..
8c6d40f
100644
(file)
--- a/
src/maemo/modest-msg-view-window.c
+++ b/
src/maemo/modest-msg-view-window.c
@@
-688,7
+688,8
@@
select_next_valid_row (GtkTreeModel *model,
gboolean cycle)
{
GtkTreeIter tmp_iter;
- GtkTreePath *path, *next;
+ GtkTreePath *path;
+ GtkTreePath *next = NULL;
gboolean retval = FALSE;
g_return_val_if_fail (gtk_tree_row_reference_valid (*row_reference), FALSE);
@@
-714,6
+715,8
@@
select_next_valid_row (GtkTreeModel *model,
/* Free */
gtk_tree_path_free (path);
+ if (next)
+ gtk_tree_path_free (next);
return retval;
}