Skip to content

Commit

Permalink
bugfix: dont unref a null player
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Crisci committed Jun 13, 2018
1 parent b47c617 commit 2032a74
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion playerctl/playerctl-cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,9 @@ int main (int argc, char *argv[])
}

loopend:
g_object_unref(player);
if (player != NULL) {
g_object_unref(player);
}
g_clear_error(&error);
error = NULL;

Expand Down

0 comments on commit 2032a74

Please sign in to comment.