summaryrefslogtreecommitdiffstats
path: root/display-gtk.h
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2013-02-09 21:29:58 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-02-09 11:40:03 -0800
commit363c38f5578e6ab08ac4e80bb585ddd12f91c263 (patch)
tree703ae570ecacea4a8b829de147f32b2e6a1e15d7 /display-gtk.h
parent3848cac30f3b7cd96d8add37fc3576f2ff00093e (diff)
downloadsubsurface-363c38f5578e6ab08ac4e80bb585ddd12f91c263.tar.gz
Fixed some memory leaks in divelist.c related to gtk_tree_iter_copy()
divelist.c: get_iter_from_idx() goes trought the tree model and calls iter_has_index(), until a match is found. when the match is found we use gtk_tree_iter_copy() to make a copy of the iterator. This means that the caller of get_iter_from_idx() has to take care the de-allocation using gtk_tree_iter_free(). Also take care of the eventual: parent = gtk_tree_iter_copy(...) allocation in select_prev_dive(), select_next_dive() Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'display-gtk.h')
0 files changed, 0 insertions, 0 deletions