aboutsummaryrefslogtreecommitdiff
path: root/src/ui/new_contact.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/new_contact.c')
-rw-r--r--src/ui/new_contact.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/ui/new_contact.c b/src/ui/new_contact.c
index 6438331..7d5d395 100644
--- a/src/ui/new_contact.c
+++ b/src/ui/new_contact.c
@@ -393,8 +393,6 @@ ui_new_contact_dialog_cleanup(UI_NEW_CONTACT_Handle *handle)
393 if (0 != handle->idle_processing) 393 if (0 != handle->idle_processing)
394 g_source_remove(handle->idle_processing); 394 g_source_remove(handle->idle_processing);
395 395
396 handle->idle_processing = 0;
397
398 g_signal_handler_disconnect( 396 g_signal_handler_disconnect(
399 handle->id_drawing_area, 397 handle->id_drawing_area,
400 handle->id_draw_signal 398 handle->id_draw_signal
@@ -405,8 +403,8 @@ ui_new_contact_dialog_cleanup(UI_NEW_CONTACT_Handle *handle)
405 if (handle->image) 403 if (handle->image)
406 zbar_image_destroy(handle->image); 404 zbar_image_destroy(handle->image);
407 405
408 handle->image = NULL;
409
410 zbar_image_scanner_destroy(handle->scanner); 406 zbar_image_scanner_destroy(handle->scanner);
411 zbar_video_destroy(handle->video); 407 zbar_video_destroy(handle->video);
408
409 memset(handle, 0, sizeof(*handle));
412} 410}