From 5f6f184f514349e682de4a4150a095a219fe89f4 Mon Sep 17 00:00:00 2001 From: Felix Riemann Date: Tue, 17 Dec 2013 15:53:10 +0100 Subject: EomImage: Slight optimization of private data structure - Remove/Disable unused members - Close memory hole on 64-bit origin commit: https://gitlab.gnome.org/GNOME/eog/commit/08a8460 --- src/eom-image-private.h | 9 +++++---- src/eom-image.c | 1 - 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/eom-image-private.h b/src/eom-image-private.h index 0dfce1d..fbe46ae 100644 --- a/src/eom-image-private.h +++ b/src/eom-image-private.h @@ -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; @@ -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; diff --git a/src/eom-image.c b/src/eom-image.c index 5cd4839..6922923 100644 --- a/src/eom-image.c +++ b/src/eom-image.c @@ -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; -- cgit v1.2.1