Skip to content

Commit

Permalink
Fix memory leak in vikgpslayer.c
Browse files Browse the repository at this point in the history
  • Loading branch information
rnorris committed Jan 18, 2025
1 parent 576457d commit 8fb3f1f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/vikgpslayer.c
Original file line number Diff line number Diff line change
Expand Up @@ -2094,6 +2094,7 @@ static void rt_gpsd_disconnect(VikGpsLayer *vgl)
if (vgl->realtime_io_channel) {
GError *error = NULL;
g_io_channel_shutdown (vgl->realtime_io_channel, FALSE, &error);
g_io_channel_unref (vgl->realtime_io_channel);
vgl->realtime_io_channel = NULL;
}
if (vgl->vgpsd) {
Expand Down

0 comments on commit 8fb3f1f

Please sign in to comment.