Skip to content

Commit

Permalink
fix(clipboard): memory leak for pixbuf
Browse files Browse the repository at this point in the history
  • Loading branch information
jtheoof committed Jan 6, 2020
1 parent f963a76 commit 665295b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/clipboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ bool clipboard_copy_drawing_area_to_selection(struct swappy_state *state) {
char message[MAX_PATH];
snprintf(message, MAX_PATH, "Swappshot copied to clipboard\n");
notification_send("Swappy", message);
g_object_unref(pixbuf);

return true;
}

0 comments on commit 665295b

Please sign in to comment.