aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/image.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/image.c')
-rw-r--r--src/core/image.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/image.c b/src/core/image.c
index 741b0547..277d09a9 100644
--- a/src/core/image.c
+++ b/src/core/image.c
@@ -275,8 +275,7 @@ int image_exec ( struct image *image ) {
/* Pick up replacement image before we drop the original
* image's temporary reference.
*/
- if ( ( replacement = image->replacement ) != NULL )
- image_get ( replacement );
+ replacement = image->replacement;
/* Drop temporary reference to the original image */
image_put ( image );