Skip to content

Commit

Permalink
Fix Missing Image Message
Browse files Browse the repository at this point in the history
  • Loading branch information
iguessthislldo committed Aug 11, 2019
1 parent 47667e4 commit 69b3262
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions main_window.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,6 @@ void init_entries_gui(Entries * entries) {
false, // Do not perserve aspect ratio
&error
);
g_free(full_image_path);
if (image) { // Create Normal GUI
if (entry->disabled)
gdk_pixbuf_saturate_and_pixelate(image, image, 0, true);
Expand Down Expand Up @@ -230,13 +229,10 @@ void init_entries_gui(Entries * entries) {
"image-missing", GTK_ICON_SIZE_DIALOG
)
);
gtk_container_add(GTK_CONTAINER(error_message_box),
gtk_label_new(error_message)
);
gtk_container_add(GTK_CONTAINER(event_box), error_message_box);
g_free(error_message);
}

g_free(full_image_path);
}
}

Expand Down

0 comments on commit 69b3262

Please sign in to comment.