Skip to content

Commit 665295b

Browse files
committed
fix(clipboard): memory leak for pixbuf
1 parent f963a76 commit 665295b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/clipboard.c

+1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ bool clipboard_copy_drawing_area_to_selection(struct swappy_state *state) {
8686
char message[MAX_PATH];
8787
snprintf(message, MAX_PATH, "Swappshot copied to clipboard\n");
8888
notification_send("Swappy", message);
89+
g_object_unref(pixbuf);
8990

9091
return true;
9192
}

0 commit comments

Comments
 (0)