Skip to content

Commit

Permalink
EomImage: Slight optimization of private data structure
Browse files Browse the repository at this point in the history
- Remove/Disable unused members
- Close memory hole on 64-bit

origin commit:
https://gitlab.gnome.org/GNOME/eog/commit/08a8460
  • Loading branch information
fxri authored and raveit65 committed Jul 23, 2018
1 parent a95925a commit 5f6f184
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
9 changes: 5 additions & 4 deletions src/eom-image-private.h
Expand Up @@ -34,13 +34,12 @@ struct _EomImagePrivate {

EomImageStatus status;
EomImageStatus prev_status;
gboolean is_monitored;
EomImageMetadataStatus metadata_status;
EomImageMetadataStatus metadata_status;

GdkPixbuf *image;
gboolean is_playing;
GdkPixbufAnimation *anim;
GdkPixbufAnimationIter *anim_iter;
gboolean is_playing;
GdkPixbuf *image;
GdkPixbuf *thumbnail;
#ifdef HAVE_RSVG
RsvgHandle *svg;
Expand All @@ -56,9 +55,11 @@ struct _EomImagePrivate {
guint exif_chunk_len;
guchar *exif_chunk;

#if 0
/* Holds IPTC raw data */
guchar *iptc_chunk;
guint iptc_chunk_len;
#endif

gboolean modified;
gboolean file_is_changed;
Expand Down
1 change: 0 additions & 1 deletion src/eom-image.c
Expand Up @@ -294,7 +294,6 @@ eom_image_init (EomImage *img)
g_mutex_init (&img->priv->status_mutex);
img->priv->status = EOM_IMAGE_STATUS_UNKNOWN;
img->priv->metadata_status = EOM_IMAGE_METADATA_NOT_READ;
img->priv->is_monitored = FALSE;
img->priv->undo_stack = NULL;
img->priv->trans = NULL;
img->priv->trans_autorotate = NULL;
Expand Down

0 comments on commit 5f6f184

Please sign in to comment.