Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
device: plug memory leak
Browse files Browse the repository at this point in the history
EmmanuelP committed Nov 21, 2023
1 parent d2355b4 commit 7c25eb2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/arvdevice.c
Original file line number Diff line number Diff line change
@@ -1348,8 +1348,10 @@ arv_device_finalize (GObject *object)

g_clear_error (&priv->init_error);

for (iter = priv->streams; iter != NULL; iter= iter->next)
for (iter = priv->streams; iter != NULL; iter= iter->next) {
g_weak_ref_clear(iter->data);
g_free (iter->data);
}
g_slist_free(priv->streams);

G_OBJECT_CLASS (arv_device_parent_class)->finalize (object);

0 comments on commit 7c25eb2

Please sign in to comment.