Pass {delayed_}create_progress_dlg a pointer the top level window
[metze/wireshark/wip.git] / ui / gtk / rtp_analysis.c
index 7e867462f451ac0a8962bef2907192229d91ec3a..6733735465ef03087562c07b2aca8deecf8bd6cb 100644 (file)
@@ -30,7 +30,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation,  Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+ * Foundation,  Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
 #ifdef HAVE_CONFIG_H
@@ -2392,7 +2392,7 @@ static gboolean copy_file(gchar *dest, gint channels, gint format, user_data_t *
                return FALSE;
        }
 
-       progbar = create_progress_dlg("Saving voice in a file", dest, TRUE, &stop_flag);
+       progbar = create_progress_dlg(top_level, "Saving voice in a file", dest, TRUE, &stop_flag);
 
        if      (format == SAVE_AU_FORMAT) /* au format */
        {
@@ -3709,6 +3709,7 @@ void rtp_analysis(
                simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
                              "Can't create temporary file for RTP analysis:\n%s.",
                              g_strerror(errno));
+               g_free(user_data);
                return;
        }
        user_data->f_tempname = g_strdup(tempname);
@@ -3718,6 +3719,8 @@ void rtp_analysis(
                simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
                              "Can't create temporary file for RTP analysis:\n%s.",
                              g_strerror(errno));
+               g_free(user_data->f_tempname);
+               g_free(user_data);
                return;
        }
        user_data->r_tempname = g_strdup(tempname);