Skip to content

Commit

Permalink
fix(application): 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 665295b commit f9d70fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/application.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ static void action_save_area_to_file(struct swappy_state *state) {
snprintf(message, len, "%s%s", msg, path);
notification_send("Swappy", message);
g_free(message);
g_object_unref(pixbuf);
}

void save_clicked_handler(GtkWidget *widget, struct swappy_state *state) {
Expand Down

0 comments on commit f9d70fc

Please sign in to comment.