]> Pileus Git - aweather/commit
Update GPS plugin reference handling
authorAndy Spencer <andy753421@gmail.com>
Sat, 11 Feb 2012 07:56:05 +0000 (07:56 +0000)
committerAndy Spencer <andy753421@gmail.com>
Sun, 12 Feb 2012 07:05:42 +0000 (07:05 +0000)
commit49e0f79ffb481d3335f352d99b3ae379a4218b86
treea8672edaf66e2bad6789460995b0a09e1e7b7b9f
parent3211eaca2b7a580cd34d08ed34425c4da295ba59
Update GPS plugin reference handling

Reference he viewer and prefs at creation and then unref them when it
exits. This fixes avoid a double-unref.

Also make the dispose function reentrant by setting the viewer field to
NULL before unreferencing the viewer. (Dispose may be called recursively
by glib when unreferencing other stuff)
src/plugins/gps-plugin.c