Skip to content

main: Fix warning when "browsing too fast"

Bastien Nocera requested to merge wip/hadess/fix-browse-valgrind-warning into master

Fix possible use of an uninitialised variable, as spotted by valgrind.

(totem:28635): Gtk-CRITICAL **: 17:22:01.811: gtk_tree_model_get_iter: assertion 'path != NULL' failed
==28635== Conditional jump or move depends on uninitialised value(s)
==28635==    at 0x50BCC94: gtk_tree_store_get_value (gtktreestore.c:655)
==28635==    by 0x50AF14D: gtk_tree_model_get_valist (gtktreemodel.c:1798)
==28635==    by 0x50AF47C: gtk_tree_model_get (gtktreemodel.c:1762)
==28635==    by 0x48989C6: browse_cb (totem-grilo.c:688)
==28635==    by 0x608EFE3: queue_process (grl-source.c:2088)
==28635==    by 0x4994917: g_main_dispatch (gmain.c:3189)
==28635==    by 0x4994917: g_main_context_dispatch (gmain.c:3854)
==28635==    by 0x4994D07: g_main_context_iterate.isra.26 (gmain.c:3927)
==28635==    by 0x4994D9B: g_main_context_iteration (gmain.c:3988)
==28635==    by 0x4B3A71C: g_application_run (gapplication.c:2516)
==28635==    by 0x10A277: main (totem.c:83)

See #304 (moved)

Edited by Bastien Nocera

Merge request reports