mirror of
https://github.com/jtheoof/swappy.git
synced 2024-09-11 14:55:49 +03:00
fix(clipboard): memory leak for pixbuf
This commit is contained in:
parent
f963a76c5c
commit
665295b497
@ -86,6 +86,7 @@ bool clipboard_copy_drawing_area_to_selection(struct swappy_state *state) {
|
|||||||
char message[MAX_PATH];
|
char message[MAX_PATH];
|
||||||
snprintf(message, MAX_PATH, "Swappshot copied to clipboard\n");
|
snprintf(message, MAX_PATH, "Swappshot copied to clipboard\n");
|
||||||
notification_send("Swappy", message);
|
notification_send("Swappy", message);
|
||||||
|
g_object_unref(pixbuf);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user