aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2009-08-10 19:25:59 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-08-11 04:46:56 +0800
commit11593af886c7c1ca492b1ec2915e203934f8c8f2 (patch)
tree448a0252e172c401bf026cf21a295ae6518adcca /composer
parentf5cc3b2779f127122285f9834859b31e5558b111 (diff)
downloadgsoc2013-evolution-11593af886c7c1ca492b1ec2915e203934f8c8f2.tar
gsoc2013-evolution-11593af886c7c1ca492b1ec2915e203934f8c8f2.tar.gz
gsoc2013-evolution-11593af886c7c1ca492b1ec2915e203934f8c8f2.tar.bz2
gsoc2013-evolution-11593af886c7c1ca492b1ec2915e203934f8c8f2.tar.lz
gsoc2013-evolution-11593af886c7c1ca492b1ec2915e203934f8c8f2.tar.xz
gsoc2013-evolution-11593af886c7c1ca492b1ec2915e203934f8c8f2.tar.zst
gsoc2013-evolution-11593af886c7c1ca492b1ec2915e203934f8c8f2.zip
Runtime warning (incorrect g_object_unref call) fix
Diffstat (limited to 'composer')
-rw-r--r--composer/e-composer-autosave.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/composer/e-composer-autosave.c b/composer/e-composer-autosave.c
index 908ff8cf83..1fd04c3c1e 100644
--- a/composer/e-composer-autosave.c
+++ b/composer/e-composer-autosave.c
@@ -83,7 +83,8 @@ composer_autosave_state_new (void)
static void
composer_autosave_state_free (AutosaveState *state)
{
- g_object_unref (state->file);
+ if (state->file)
+ g_object_unref (state->file);
g_slice_free (AutosaveState, state);
}