Skip to content

Commit

Permalink
Fix string leaks in property change handler
Browse files Browse the repository at this point in the history
  • Loading branch information
mia-0 authored and hoyon committed Dec 23, 2022
1 parent b241f43 commit ae9a162
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mpris.c
Original file line number Diff line number Diff line change
Expand Up @@ -900,6 +900,7 @@ static void handle_property_change(const char *name, void *data, UserData *ud)
} else {
ud->loop_status = LOOP_NONE;
}
mpv_free(playlist_status);
}
prop_name = "LoopStatus";
prop_value = g_variant_new_string(ud->loop_status);
Expand All @@ -916,6 +917,7 @@ static void handle_property_change(const char *name, void *data, UserData *ud)
} else {
ud->loop_status = LOOP_NONE;
}
mpv_free(file_status);
}
prop_name = "LoopStatus";
prop_value = g_variant_new_string(ud->loop_status);
Expand Down

0 comments on commit ae9a162

Please sign in to comment.