libgimpwidgets: don't unref a NULL transforms from the transform cache

This commit is contained in:
Michael Natterer
2016-05-30 12:48:10 +02:00
parent d8271ed33f
commit 70463a74fa

View File

@ -547,7 +547,9 @@ transform_cache_config_notify (GObject *config,
g_signal_handler_disconnect (config, cache->notify_id);
g_object_unref (cache->transform);
if (cache->transform)
g_object_unref (cache->transform);
g_object_unref (cache->src_profile);
g_object_unref (cache->dest_profile);